N=int(input()) if N<=3: print("NO") exit() for i in range(2,int(N**0.5)+2): if N%i==0: print("YES") exit() print("NO")