#include #include #include #include #include #include #include #include #include #define rep(i,n) for(int i=0;i P; const int dx[4] = {0,1,0,-1}; const int dy[4] = {1,0,-1,0}; template inline bool chmax(T &a,T& b){if(a < b){a = b; return true;} else return false;} template inline bool chmin(T &a,T& b){if(a > b){a = b; return true;} else return false;} //struct area //function area //main area int main(){ int a; cin >> a; bool res = false; for(int k=3; k<=1e4; k++){ if(k%2==0){ if(a%k * 2 == a){ res = true; } } else{ if(a%k == 0){ res = true; } } } cout << (res ? "YES" : "NO") << endl; } /* 奇数の場合 奇数(2a+1, 0