#include<bits/stdc++.h>
using namespace std;
#define forr(i,a,n)	for(long long int i=a; i<n; i++)
#define loop(i,a,n)	for(long long int i=a; i>=n; i--)

int main() 
{	
	ios_base :: sync_with_stdio(false),cin.tie(NULL),cout.tie(0);
	
	string s;
	int flag=0;
	cin>>s;
	forr(i,0,s.size())
	{
		if(s[i]=='7')
			flag=1;
	}
	cout<<(flag?"Yes":"No");
	
	
	return 0;	
}