N=int(input()) s=1 for i in range(N): s*=2**(i+1)-1 t=2**(N+1)-1 if s%t==0:print("Yes") else:print("No")