fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int num;
  7. cin>>num;
  8. if(num % 2 == 0)
  9. {
  10. if((num/2) % 2 == 0 )
  11. {
  12. cout<<"YES";
  13. }
  14. else
  15. {
  16. cout<<"NO";
  17. }
  18. }
  19. else
  20. {
  21. cout<<"NO";
  22. }
  23. return 0;
  24. }
Success #stdin #stdout 0.01s 5400KB
stdin
8
stdout
YES