fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4.  
  5. int num;
  6. cin>>num;
  7.  
  8. int first = num;
  9. int temp = num%10;
  10.  
  11. if( (first %4 ==0) || (temp ==7 ) || (temp ==4) ){
  12. cout<<"YES"<<endl;
  13. }else{
  14. cout<<"NO"<<endl;
  15. }
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
NO