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

int main() {
	string n; cin >> n;
	bool b = false;
	for (char& c : n) {
		if (c == '7') {
			b = true;
			break;
		}
	}
	cout << (b ? "Yes" : "No") << endl;
	return 0;
}
