N=int(input()) for i in range(2,10**7+5): if i!=N and N%i==0: print("YES") break else: print("NO")