a = int(input()) while a % 2 == 0: a //= 2 f = 3 while f * f <= a: if a % f == 0: print("YES") exit() f += 2 if f != 1: print("YES") else: print("NO")