N=int(input()) if N==len("#"): print("NO") exit() for i in range(len("##"),N): if N%i==len(""): print("NO") exit() print("YES")