#include #include #include #include #include #include #include #include #define REP(i,k,n) for(int i=k;i P; bool is_prime(ll n) { for(ll i = 2; i*i <= n; i++) { if(n % i == 0) return false; } return true; } int main() { ll n; cin >> n; if(is_prime(n) || n == 1) { cout << "NO" << endl; } else { cout << "YES" << endl; } return 0; }