#include <bits/stdc++.h>
using namespace std;

int main() {
	//input
	string N;
	cin >> N;

	char seven = '7';

	//calculation
	int output = 0;

	for (int i = 0; i < 3; i++) {
		if (N[i] == seven) {
			cout << "Yes" << endl;
			return 0;
		}
	}

	cout << "No" << endl;
	return 0;
}
