#include #include #include #include #include using namespace std; typedef long long ll; vector divisor(ll n) { vector res; for (ll i = 1; i*i <= n; ++i) { if (n%i == 0) { res.push_back(i); if (i != n / i) res.push_back(n / i); } } return res; } bool is_prime(ll x) { for (ll i = 2; i*i <= x; ++i) { if (x%i == 0) return false; } return x != 1; } bool is_ok(ll x) { if (x <= 2) return false; if (is_prime(x)) return false; vector divs = divisor(x); for (auto& d : divs) { if (!is_prime(d)) return true; } return false; } int main(void) { ll x; cin >> x; cout << (is_ok(x) ? "YES" : "NO") << endl; return 0; }