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