#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	string n;
	cin>>n;
	bool isok = false;
	for(int i=0;i<n.size();i++)
	{
		if(n[i] == '7')
			isok = true;;
	}
	if(isok)
	{
		cout<<"Yes\n";
	}
	else
	{
		cout<<"No\n";
	}
}