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