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