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

int main()
{
  bool frag=false;
  vector<char> v(3);
  for(int i = 0; i < 3; i++)
  {
    cin >> v[i];
    if(v[i] == '7')frag = true;
  }
  
  if(frag)cout << "Yes" << endl;
  else cout << "No" << endl;
}  