Codeforces Beta Round 51
A
Flea travel
Codeforces
1200
原题
←B →
翻译中…

A flea is sitting at one of the $*n*$ hassocks, arranged in a circle, at the moment. After minute number $*k*$ the flea jumps through $*k* - 1$ hassoсks (clockwise). For example, after the first minute the flea jumps to the neighboring hassock. You should answer: will the flea visit all the hassocks or not. We assume that flea has infinitely much time for this jumping.

翻译中…

Input

翻译中…

The only line contains single integer: $1 ≤ *n* ≤ 1000$ — number of hassocks.

翻译中…

Output

翻译中…

Output "YES" if all the hassocks will be visited and "NO" otherwise.

翻译中…

样例

Input #1
1
Output #1
YES
InputCopy OutputCopy
Input #2
3
Output #2
NO
InputCopy OutputCopy
题目信息
题号
55A
时间限制
1 s
内存限制
256 MB
标签
模拟
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。