#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; 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 / 4; i += 2) { if (N%i == 0) { flg = true; break; } } } } else { if (N >= 27) { for (int i = 9; i < N / 9; i += 2) { if (N%i == 0) { flg = true; break; } } } } if (flg) { std::cout << "YES" << std::endl; } else { std::cout << "NO" << std::endl; } }