A=int(input()) B=0 B+=A while B%2==0: B//=2 if B==1: print("NO") else: print("YES")