#include<bits/stdc++.h>
using namespace std;

int main()
{
	int a,ge,shi,bai,b=7;
	cin >> a;
	ge=a%10;
	shi=a/10%10;
	bai=a/100;
	if(ge==b)
	{
		cout << "Yes";
		return 0;
	}
	else if(shi==b)
	{
		cout << "Yes" ;
		return 0;
	}
	else if(bai==b)
	{
		cout << "Yes" ;
		return 0;
	}
	else
	{
		cout << "No";
		return 0;
	}
}