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