#include #include #include #include #include #include #include #include using namespace std; void solv(){ int n; cin >> n; int i=n; vector v; while(i--){ v.push_back(i); } sort(v.begin(),v.end()); v.erase(v.begin()); if(v.empty()){ cout << "NO" << endl; return; } v.erase(v.begin()); if(v.empty()){ cout << "YES" << endl; return; } for(auto &x:v){ int a=n/x; int b=n%x; if((a-b)==a){ cout << "NO" << endl; return; } } cout << "YES" << endl; return; } int main(){ solv(); }