#include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
#define rep(a, b) for(a = 0; a < b; a++)

int main(){  
  int N, i;
  string _N;
  
  cin >> N;
  _N = to_string(N);
  
  rep(i, 3){
    
    if(_N.at(i) == '7'){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}