fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.  
  5. int w;
  6. cin>>w;
  7.  
  8. if(w>=4 && (w%2==0)){
  9. cout<<"YES";
  10. }
  11. else{
  12. cout<<"NO";
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5320KB
stdin
4
stdout
YES