#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; typedef pair pii; typedef vector vi; #define rep(i,x) for(int i=0;i<(int)(x);++i) int main(){ int cnt = 0; ll n, m; cin >> n; for (ll i=2, m=n; i*i<=n; ++i) { while (!(m%i)) { m /= i; ++cnt; if (cnt>2) break; } } if (m>1) ++cnt; cout << (cnt>2 ? "YES" : "NO") << endl; return 0; }