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