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