#include<bits/stdc++.h>
using namespace std;
bool check(int n)
{
	int t=n;
	while(t!=0)
	{
		int k=t%10;
		if(k==7)
			return true;
		t/=10;
	}
	return false;
}
int main()
{
	int n;
	cin>>n;
	if(check(n))
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
	return 0;
}