import math n = input() for i in xrange(2, (int)(math.sqrt(n))): if n % i == 0: for j in xrange(2,(int)(math.sqrt(n/i))): if j % (n/i) == 0: print "YES" exit() print "NO"