#include <iostream>

using namespace std;

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

	bool flag = false;
	for (const auto& num : n) {
		if (num == '7') {
			flag = true;
		}
	}
	if (flag) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}
