n = int(input()) a = 1 for i in range(2, n+1): b = 2 ** i - 1 a *= b c = 2 ** (n + 1) - 1 if a % c == 0: print("Yes") else: print("No")