#include<iostream>
#include<string>
#include<algorithm>
#include<iomanip>
#include<vector>

using namespace std;


int main() {
	string N;
	cin >> N;
	bool can = false;
	for (int i = 0; i < 3; i++) {
		if (N[i] == '7') can = true;
	}
	if (can) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}


