fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n; cin >> n;
  6. if (n % 2 == 0 && n > 2) {
  7. cout << "YES" << endl;
  8. }
  9. else {
  10. cout << "NO" << endl;
  11. }
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
YES