#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#include<cstdlib>
#include<cmath>
using namespace std;
using ll =long long;
int main() {
	int N;
	cin >> N;
	if (N / 100 == 7 || N % 100 / 10 == 7 || N % 10 == 7) {


		cout << "Yes";
		return 0;
		}
	cout << "No";

}