#include<stdio.h>
#include<math.h>
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	int a;
	int b;
	int c;
	0 <= a <= 9;
	0 <= b <= 9;
	0 <= c <= 9;
	N = 100 * a + 10 * b + c;
	if (a = 7 || b = 7 || c = 7) {
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
}