#include #define ll long long using namespace std; bool is_prime(ll n){ if(n == 1) return true; if(n == 2 || n == 3 || n == 5){ return true; } if(n % 2 ==0 || n % 3 == 0 || n % 5 ==0){ return false; } for(ll i=7;i <= n;i+=2){ if(i == n) return true; else if(n % i == 0 && n != i) return false; } } int main(){ ll n; cin >> n; if(is_prime(n)) cout << "NO" << endl; else cout << "YES" << endl; return 0; }