#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
#include <stdlib.h>
#define ll long long
#define MOD_P 1000000007
using namespace std;



int main()
{
	int n;
	cin >> n;

	while (n > 1) {
		if (n % 10 == 7) {
			printf("Yes");
			return 0;
		}
		n /= 10;
	}

	printf("No");
	return 0;
}