#include using namespace std; typedef long long ll; #define REP(i, n) for(int(i)=0;(i)<(n);++(i)) int pdecomp(ll n){ unsigned int e = 0; while(n % 2 == 0){ n /= 2, e++; } for(unsigned int p = 3; p*p <= n; p += 2){ while(n % p == 0){ n /= p, e++; } } if(n != 1) e++; return e; } int main(){ ll N; cin >> N; cout << (pdecomp(N) > 2 ?"YES":"NO") << endl; return 0; }