#include<iostream>

using namespace std;

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

	int i;
	bool res = false;

	for (i = 0; i < 3; i++) {
		if (s[i] == '7') {
			res = true;
			break;
		}

	}

	if (res) cout << "Yes";
	else cout << "No";

	return 0;
}