N=int(input()) M=1 for n in range(2,N+1): M*=2**n-1 print("Yes"if M%((1<