#include #include #include #include #include #include #include #include using namespace std; #define REP(i,first,last) for (int i=first;i y ? x : y) #define MIN(x,y) (x < y ? x : y) long N; vector factor(long n){ vector res; int num = 2; int sqrt_n = sqrt(n); while (n > 1) { while (n % num == 0) { n /= num; res.push_back(num); } ++num; if (num > sqrt_n) break; } if (n != 1) res.push_back(n); return res; } int main(){ cin >> N; vector res = factor(N); cout << (res.size() > 2 ? "YES" : "NO") << endl; }