import math n = int(input()) prod = math.prod(2**k - 1 for k in range(1, n + 1)) ans = prod % (2 ** (n + 1) - 1) == 0 print("Yes" if ans else "No")