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

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	string s;
	cin >> s;
	bool flag = 0;
	for (int i = 0; i < 3; i++) {
		if (s[i] == '7') {
			flag = 1;
			break;
		}
	}
	if (flag) cout << "Yes\n";
	else cout << "No\n";
	return 0;
}