import sys
n=int(input())
for i in range(0,1000):
    if 2**i==n:
        print("yes")
        sys.exit()
print("no")

b7a9ffbdf7d95f776f8a1a8d9fd184d0ab72cb4f
<mask token>

<mask token>
for i in range(0, 1000):
    if 2 ** i == n:
        print('yes')
        sys.exit()
print('no')

<mask token>
n = int(input())
for i in range(0, 1000):
    if 2 ** i == n:
        print('yes')
        sys.exit()
print('no')

import sys
n = int(input())
for i in range(0, 1000):
    if 2 ** i == n:
        print('yes')
        sys.exit()
print('no')

import sys
n=int(input())
for i in range(0,1000):
    if 2**i==n:
        print("yes")
        sys.exit()
print("no")
