#include<iostream>

using namespace std;

int main() {
	int a;
	cin >> a;
	for (int i = 0; i < 3; i++) {
		if (a % 10 == 7) {
			cout << "Yes\n";
			return 0;
		}
		a /= 10;
	}
	cout << "No\n";
	return 0;
}