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