# coding: utf-8 # Your code here! A=int(input()) roop=int(A**0.5)+1 judge=A%2 for i in range(3,roop): temp=A/i if i%2==0: if temp%1==0.5: #print(i) print("YES") exit() else: if temp%1==0: #print(i) print("YES") exit() print("NO")