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