#include <bits/stdc++.h>                                                                             
using namespace std;                                                                                 
using ll = long long;                                                                                
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }              
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }              
                                                                                                     
int main() {                                                                                         
  int n;                                                                                             
  cin >> n;                                                                                          
  int hyaku = n / 100;                                                                               
  int ju = (n / 10) % 10;                                                                            
  int ichi = n % 10;                                                                                 
  if (hyaku == 7 || ju == 7 || ichi == 7) {                                                          
    cout << "Yes" << endl;                                                                           
  } else {                                                                                           
    cout << "No" << endl;                                                                            
  }                                                                                                  
  return 0;                                                                                          
}                     