#include <iostream>
#include <string>
using namespace std;

int main() {
	int n;
	cin >> n;
	string s = to_string(n);
	bool f = false;
	for (int i = 0; i < s.size(); ++i) {
		int a = stoi(s.substr(i, 1));
		if (a == 7)
			f = true;
	}
	if (f) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}
