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