#include using namespace std; typedef long long ll; vector prime_factors(ll n) { ll i = 2; vector factors; while (i * i <= n) { if (n % i) i++; else { n /= i; factors.push_back(i); } } if (n > 1) factors.push_back(n); return factors; } int main(void) { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif ios_base::sync_with_stdio(false); cin.tie(NULL); ll N; cin >> N; vector ret; ret = prime_factors(N); if (ret.size() > 2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }