#include #include typedef long long ll; int main(void) { std::cin.tie(0); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(2); ll n; std::cin >> n; ll tgt = 2; int isdived = 0; while (tgt * tgt <= n) { if (n%tgt != 0) {tgt++; continue;} isdived++; if (isdived >= 2) {std::cout << "YES" << std::endl; return 0;} if (n/tgt%tgt==0) {std::cout << "YES" << std::endl; return 0;} n /= tgt; tgt++; } std::cout << "NO" << std::endl; return 0; }