#include using namespace std; #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++) #define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--) #define all(a) (a.begin()),(a.end()) #define rall(a) (a.rbegin()),(a.rend()) #define fi first #define se second #define pb push_back #define eb emplace_back using ll = long long; using vll = vector; using vi = vector; using vvi = vector>; using P = pair; ll sum(ll a, ll b){ return (a+b) * (b-a+1) / 2; } bool isprime(ll x){ for(ll i = 2; i*i <= x; i++){ if(x % i == 0) return false; } return true; } bool beki(ll x){ if(x == 1) return true; if(x % 2 == 1) return false; else return beki(x/2); } void Main(){ ll a; cin >> a; if(a == 3) cout << "YES" << endl; else if(isprime(a) || beki(a)) cout << "NO" << endl; else cout << "YES" << endl; return; } int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); cout << fixed << setprecision(15); Main(); return 0; }