N=int(input()) f=False if N!=1: for j in range(2,int(N**0.5)): if N%j==0: f=True break print("YES" if f else "NO")