#include<bits/stdc++.h>
using namespace std;
int main()
{ int n,found=0;
  cin>>n;

 string s=to_string(n);
 for(int i=0;i<3;i++)
 { if(s[i]=='7')
     {found=1;break;}
 }

 if(found==1)
 {cout<<"Yes";}
 else
 {cout<<"No";}
}
