#include #include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int A; cin >> A; A *= 2; for(int i = 3; i * i <= A; i++){ if(A % (i + 1) == 0 && A / (i + 1) - i > 0 && (A / (i + 1) - i) % 2 == 0){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }