#include <bits/stdc++.h>

#define ll long long
#define ull unsigned long long

using namespace std;

int main() {
	string s;
	cin >> s;

	bool ans = false;
	for (int ii = 0; ii < 3; ++ii){
		if (s[ii] == '7'){
			ans = true;
		}
	}


	if (ans){
	cout << "Yes" << endl;

	} else {
	cout << "No" << endl;

	}


	return 0;
}
