#include #include using namespace std; int main() { long long N; short move=0; long long hoge[2]; cin >> N; for (int i=2;i<=sqrt(N);i++) { if (N%i == 0) { hoge[move] = i; move++; } if(move==2){ if(hoge[0]*hoge[1]>=N){ cout << "NO"; } else { cout << "YES"; } break; } } if (move < 2) { cout << "NO"; } cout << endl; }