Codeforces Beta Round 51
翻译中…
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
题目信息
标签
模拟
数学
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。