A = int(input()) for i in range(3, 10**8, 2): if A % i != 0: continue temp = A // i a = i a -= 1 a = a // 2 if i - a >= 1: print("YES") exit() print("NO")