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