#include<bits/stdc++.h>
using namespace std;
int main()
{
 int x,i,r;
 cin>>x;
 r=x%100;

 if(r/10==7||x%10==7||x/100==7)
 {
     cout<<"Yes"<<endl;
 }
 else
 {
     cout<<"No"<<endl;
 }

return 0;
}
