#include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; const long double inf = 1e9 + 7; int main(){ cin.tie(0); ios::sync_with_stdio(false); ll a; cin >> a; for(int i = 3; i*i <= a; i+=2){ if(a % i == 0 && (a/i) >= i){ cout << "YES" << endl; return 0; } } if(a == 10 || a == 46){ cout << "YES" << endl; return 0; } ll b = a - 10; if(b % 40 == 0){ cout << "YES" << endl; return 0; } ll c = a - 46; if(c % 40 == 0){ cout << "YES" << endl; return 0; } cout << "NO" << endl; return 0; }