N=int(input()) ans="NO" for p in range(2,N): if p**2>N: break if N%p==0: ans="YES" break print(ans)