#include<bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main() {
	string s;
	cin >> s;
	int f = 0;
	for (int i = 0; i < 3; ++i)
		if (s[i] == '7')
			f = 1;
	if (f)
		cout << "Yes";
	else
		cout << "No";
}
