#include #include #include using namespace std; int main() { long long N; cin >> N; int count = 0; for(int i=2; i<=N; ++i){ while(N%i == 0){ N /= i; ++count; if(count == 3){ cout << "YES" << endl; return 0; } } } cout << "NO" << endl; return 0; }