#include #include #include #include #define REP(i, a, b) for (int i = int(a); i < int(b); i++) #define dump(val) cerr << __LINE__ << ":\t" << #val << " = " << (val) << endl using namespace std; typedef long long int lli; template vector make_v(size_t a, T b) { return vector(a, b); } template auto make_v(size_t a, Ts... ts) { return vector(a, make_v(ts...)); } int main() { lli N; cin >> N; for (lli i = 2; i * i <= N; i++) { if (N % i == 0) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }