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