#include #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD 1000003 #define INF 100000000 using namespace std; typedef long long LL; typedef vector VI; typedef pair PI; int main() { LL n; cin >> n; int cnt = 0; for (int i = 2; i * i <= n; i++) { while (n % i == 0) { n /= i; cnt++; } } if (cnt > 1) cnt++; cout << (cnt >= 3 ? "YES" : "NO") << endl; return 0; }