#include using namespace std; int pp(long long n){ int count = 0; for(int i=2;i*i<=n;i++){ if(n%i == 0){ while(n%i == 0){ count++; n /= i; } } } return count; } int main(){ long long N; cin >> N; if(pp(N) <= 2) cout << "NO" << endl; else cout << "YES" << endl; return 0; }