#include <bits/stdc++.h>
using namespace std;

int main(){
  srting s; cin >> s;
  char a, b, c;
  a = s[0]; b = s[1]; c = s[2];
  if(a=='7') cout << "Yes" << endl;
  else if(b == '7') cout << "Yes" << endl;
  else if(c == '7') cout << "Yes" << endl;
  else cout << "No" << endl;
}