_N = int(raw_input()) c = 2 N = _N count = 0 while N > 1 and c < _N: while N % c == 0: N /= c count += 1 c += 1 if count > 1: print "YES" else: print "NO"