#include<iostream>
#include<string>
using namespace std;
int main() {
	int n;
	cin >> n;
	bool s = 1;
	while (n != 0) {
		if (n % 10 == 7) {
			cout << "Yes";
			s = !s;
			break;
		}
		n /= 10;
	}
	if (s) cout << "No";
	return 0;
}