n=int(input()) if n==2 or n==3: print("NO") exit() d=2 while d**2<=n: if n%d==0: print("YES") exit() d+=1 print("NO")