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