import math N = input() for i in xrange(2,int(math.sqrt(N))+1): if N % i == 0: print "YES" break else: print "NO"