Preparando MOJI

Flea travel

1000ms 262144K

Description:

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.

Sample Input:

1

Sample Output:

YES

Sample Input:

3

Sample Output:

NO

Informação

Codeforces

Provedor Codeforces

Código CF55A

Tags

implementationmath

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:29:20

Relacionados

Nada ainda