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