#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include using namespace std; int main(){ int a; cin>>a; bool b=false; for(int i=3;i<100000;i++){ if(i%2==1){ if(a%i==0 && a/i-i/2>0) b=true; } else{ if((2*a)%i==0 && a/i-i/2>=0) b=true; } } if(b) cout<<"YES"<