#include #include #include #include using namespace std; int main(){ long long n; cin>>n; if(n==1){ cout << "NO" << endl; return 0; } int c = 0; if(n%2==0){ c++; } for(int i = 3; i*i <= n; i+=2){ if(n%i==0){ c++; } } if(c<2){ cout << "NO" << endl; return 0; } cout << "YES" << endl; return 0; }