#include<iostream>

using namespace std;

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