 	 #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define pb push_back
#define ll long long
int main()
{
	std::ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	// ll tt;	cin>>tt;	while(tt--)
	{
		ll n,i;
		cin>>n;
		
		bool flag=false;
		while(n)
		{
			if(n%10==7)	flag=true;
			n/=10;
		}

		cout<<(flag ? "Yes" : "No")<<endl;
 	
 	}
	cerr<<" Execution : "<<(1.0*clock())/CLOCKS_PER_SEC<<"s \n";
		
		
return 0;
}	