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")