#include using namespace std; typedef long long LL; int main(){ int cnt = 0; LL n; cin >> n; for (LL i = 2; i*i <= n; i++){ while (n % i == 0){ cnt++; n /= i; } } if (n != 1) cnt++; cout << (cnt < 3 ? "NO" : "YES") << endl; return 0; }