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