#include #define ll long long using namespace std; ll is_prime(ll n){ ll ans = 0; for(int i=2;i*i <= n;i++){ while(n % i == 0){ ans++; n /= i; } } if(n != 1) ans++; return ans; } int main(){ ll n; cin >> n; if(is_prime(n) < 3) cout << "NO" << endl; else cout << "YES" << endl; return 0; }