#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
 
int main(){
  string N;
  cin >> N;
  bool flag = false;
  for(int i=0;i<N.size();++i){
    if(N[i]=='7') flag = true;
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}