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

int main() {
	int n;
	cin >> n;
	bool ans = false;
	int a, b, c;
	a = n/100;
	b = n/10 % 10;
	c = n%10;
	if (a == 7 || b == 7 || c == 7) {
		ans = true;
	}
	if (ans) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}