#iinclude<iostream>
using namespace std;
main()
{
  int n;
  cin>>n;
  bool b1=0;
  while(n>0)
  {
    int c=n%10;
    n=n/10;
    if(c==7)
    {
      b1=1;
      break;
    }
    if(b1==1)
      cout<<"Yes";
    else
      cout<<"No";
  }
       