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