#include #include #include #include #include using namespace std; vector p_decom(long long m){ vector v; while(m % 2 == 0){ v.push_back(2); m /= 2; } for(long long i = 3; i * i <= m; i += 2){ while(m % i == 0){ v.push_back(i); m /= i; } } if(m > 1){ v.push_back(m); } return v; } int main(){ long long n; cin>>n; if(n==1){ cout << "NO" << endl; return 0; } vector v = p_decom(n); if(v.size() <= 1){ cout << "NO" << endl; return 0; } cout << "YES" << endl; return 0; }