n=int(input()) one=int(True) two=one<<1 if n==one: print("NO") exit() for i in range(two,n): if n%i:continue print("NO") exit() print("YES")