#include #include #include using namespace std; /*int sosu(long long N){ long long A; int J = 0; for (long long i1 = 2; i1 < N/2; i1++){ A = (N / i1)*i1; if (A == N){ J = 1; break; } } return J; }*/ int main(){ long long n; long long a; int cnt = 0; cin >> n; a = n; //int judge = 0; for (long long i = 2; i < sqrt(n); i++){ while (a%i == 0){ a /= i; cnt++; } } if (a != 1) cnt++; if (cnt >=3){ cout << "YES" << endl; } else{ cout << "NO" << endl; } return 0; }