#include <bits/stdc++.h>
#include<set>
#define ll long long 
#include <string>
using namespace std;
int main()
{
	string s;
	int f=0;
	cin>>s;
	for(int i=0;i<3;i++)
	{
		if (s[i]=='7')
		{
			cout<<"Yes"<<endl;
			f=1;
			break;
		}
	}
	if (f==0)
	cout<<"No"<<endl;
	
}
	

