#include using namespace std; typedef long long ll; int main() { ll n; cin >> n; int count = 0; for (ll i = 2;i < n;i++) { if (n%i == 0) { n /= i; count++; if (count == 2) { cout << "YES" << endl; return 0; } i--; } } cout << "NO" << endl; return 0; }