N=int(input()) a=1 for i in range(2,N+1):a=a*((1<<i)-1)%((1<<(N+1))-1) print("YNeos"[a>0::2])