from sympy import sieve n=int(input()) s=[n%x for x in sieve.primerange(2,n**.5)] print("YES" if 0 in s else "NO")