n=int(input()) if n==1: print("NO") exit() for i in range(2,10**7+2): if n%i==0: if n==i: print("NO") exit() else: print("YES") exit() print("NO")