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