#include using namespace std; int main() { unsigned long long N; cin >> N; if(N == 1 || N == 2) { cout << "NO\n"; return 0; } bool ok = 1; for(unsigned long long i=2; i*i<=N; i++) { if(N % i == 0) { ok = 0; break; } } if(!ok) { cout << "YES\n"; return 0; } cout << "NO\n"; return 0; }