#include using namespace std; bool check(int n){ int i = 2; int count = 0; while (n != 1) { if (n % i == 0) { count++; if (count == 3) return true; n /= i; } else { i++; } } return false; } int main(){ int n; cin >> n; if (check(n)) { cout << "YES" << endl; } else { cout << "NO" << endl; } }