#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<n; i++)
typedef long long ll;
using namespace std;

int main() {
  string n;
  cin >> n;
  int k=0;

  while(k<n.size()){
      if(n[k] =='7'){
          cout << "Yes" << endl;
          return 0;
      }
      k++;
  }
  cout << "No" << endl;


}