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