#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,g,s,b;
	cin>>a;
	g=a%10;
	a=a/10;
	s=a%10;
	a=a/10;
	b=a;
	if(g==7)
	{
		cout<<"Yes";
		return 0;
	}
	if(s==7)
	{
		cout<<"Yes";
		return 0;
	}
	if(b==7)
	{
		cout<<"Yes";
		return 0;
	}
	cout<<"No";
    return 0;
}

