#include using namespace std; typedef long long LL; int main(){ LL N; cin >> N; int cnt = 0; for(int p = 2; p*p <= N; p++){ while(N % p == 0){ cnt += 1; N /= p; if(cnt >= 3) break; } } if(N > 1) cnt += 1; if(cnt >= 3){ cout << "YES" << endl; }else{ cout << "NO" << endl; } return 0; }