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

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

	bool ok = false;
	for (auto& c : s) {
		if (c == '7') {
			ok = true;
		}
	}
	if (ok) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}