N = long(raw_input()) f = False i = 2 while i * i <= N: if N % i == 0: f = True break i += 1 if f: print 'YES' else: print 'NO'