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

#define int long long
#define fi first
#define se second
#define ponto pair<int,int>

string n;

int32_t main()
{

	cin >> n;
	bool s = false;
	for(int i=0; i<n.size(); i++)
		if(n[i] == '7')
			s = true;
			
	puts(s ? "Yes" : "No");

}