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

#define ll long long int 

int main()
{int n,x;
int p=0;
cin>>n;
for(int i=0;i<3;i++)
{   x=n%10  ;
	if(x==7)
		{  p=1;}
	n=n/10;
   }

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


}
