#include #include #include using namespace std; int zero,one,two; int pl(int a){ string s; int model = a; while(s.size() <= a){ s.push_back('.'); } return s.size(); } int main() { int n; cin >> n; string s; zero = s.size(); s.push_back('t'); one = s.size(); s.push_back('t'); two = s.size(); int now = two; bool ok = false; while(now != n){ if(n==true) break; if(!(n%now)) {cout << "NO" << endl;ok = true;break;} now = pl(now); } if(n == true) cout << "NO" << endl; else if(ok == false) cout << "YES" << endl; }