N = int(input()) a = 1 for n in range(2, N + 1): a *= pow(2, n) - 1 d = pow(2, N + 1) - 1 if a % d: print("No") else: print("Yes")