import math n=int(input()) a=int(math.sin(math.pi)) b=(int(math.log(math.e))) for var in range(b,n): if (n==b): print('NO') break elif(n==int(math.e)): print('YES') break elif(n%var!=a): continue else: print('NO') break