#include const static double de_PI = 3.14159265358979323846; const static int de_MOD = 1000000007; const static int de_MAX = 999999999; const static int de_MIN = -999999999; bool Judge_PrimeNumber(const unsigned long long a) { if (a < 2) { return false; } if (a == 2) { return true; } if (a % 2 == 0) { return false; } for (int i = 3; i <= a / i; i += 2) { if (a%i == 0) { return false; } } return true; } int main(void) { //std::ifstream in("123.txt"); std::cin.rdbuf(in.rdbuf()); unsigned long long N = 0; std::cin >> N; bool flg = false; if (N % 2 == 0) { if (N >= 8) { for (int i = 4; i <= N / (i-2); i += 2) { if (N%i == 0) { flg = true; break; } } } } else { if (N >= 27) { unsigned long long i = 3; while (i*3 <= N / i) { unsigned long long j = 3; while ((i*j) <= N / i) { if (N % (i*j) == 0) { flg = true; break; } j += 2; } if (flg) { break; } i += 2; } } } if (flg) { std::cout << "YES" << std::endl; } else { std::cout << "NO" << std::endl; } }