fork download
  1. /*
  2. وَلَا تُخْزِنِي يَوْمَ يُبْعَثُونَ•يَوْمَ لَا يَنفَعُ مَالٌ وَلَا بَنُونَ•إِلَّا مَنْ أَتَى اللَّهَ بِقَلْبٍ سَلِيم❤
  3. */
  4. #include <bits/stdc++.h>
  5. #define ll long long
  6. #define el endl
  7. using namespace std;
  8. void saf_sofa()
  9. {
  10. if (fopen("in.txt", "r"))
  11. {
  12. freopen("in.txt", "r", stdin);
  13. freopen("out.txt", "w", stdout);
  14. }
  15. ios_base::sync_with_stdio(false);
  16. cin.tie(NULL);
  17. }
  18. int dx[] = { 0, 0, 1, -1, 1, 1, -1, -1 };
  19. int dy[] = { -1, 1, 0, 0, -1, 1, 1, -1 };
  20.  
  21.  
  22. void solve()
  23. {
  24. ll n;
  25. cin >> n;
  26. bool f = 0;
  27. while (n > 0)
  28. {
  29. int x = n % 10;
  30. if (x == 7)
  31. {
  32. f = 1;
  33. break;
  34. }
  35. n /= 10;
  36. }
  37. if (f)
  38. cout << "YES";
  39. else
  40. cout << "NO";
  41. }
  42. int main()
  43. {
  44. saf_sofa();
  45. int t_ = 1;
  46. // cin >> t_;
  47. while (t_--)
  48. {
  49. solve();
  50. }
  51. }
  52. /*
  53.  
  54. وَليتَ الذي بَيني وبينَك عامِرٌ وبَيني وبَينَ العَـٰالمينَ خرَابُ
  55.  
  56. */
Success #stdin #stdout 0.01s 5292KB
stdin
7377
stdout
YES