#include <iostream>

using namespace std;

int main() {

	char* N = new char[3];
	cin >> N;

	if (N[0] == '7' || N[1] == '7' || N[2] == '7') {
		cout << "Yes" << endl;
		return 0;
	}

	cout << "No" << endl;

	return 0;
}