#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==1) break; if(!(n%now)) {cout << "NO" << endl;ok = true;break;} now = pl(now); } if(ok == false) cout << "YES" << endl; }