#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  int n;
  n = s.length();
  bool ok = 0;
  for(int i = 0;i<n;i++){
   if(s[i]=='7'){ 
     ok = 1;
     break;}
  }
  if(ok) cout << "Yes";
  else cout <<"No";
  return 0;
}