import math a=int(input()) ans=0 for i in range(3,int(math.sqrt(a))+1): if a%i==0 and (a//i)-i//2-1>=0: ans=1 break if a%2==0 and (a//2)//2-1>=0: ans=1 if ans==1: print("YES") else: print("NO")