#include <bits/stdc++.h>
#include <stdio.h>
#include <stdlib.h>
 
using namespace std;
 
int main() {
	int n;
	bool ret = false;
	cin >> n;
	while (1) {
		if ((n) % 10 == 7) {
			ret = true;
			break;
		}
		if (n / 10 < 1) n /= 10;
		else {
			ret = false;
			break;
		}
	}
	if (ret) printf("Yes\n");
	else printf("No");
	return 0;
}