N = int(input()) x = 1 for i in range(2, N+1): x *= (2**i - 1) if x % (2**(N+1)-1) == 0: print('Yes') else: print('No')