//#include <bits/stdc++.h>
#include <vector>
//#include <stdio.h>
#include <iostream>
#include <algorithm>
using namespace std;

int main() {

	int X;

	int digit = 0;

	cin >> X;

	int a = 0;
	int b = 0;
	int c = 0;

	a = X / 100;
	b = (X - a * 100) / 10;
	c = X - a * 100 - b * 10;

	if (a == 7 || b == 7 || c == 7) {
		cout << "Yes" << endl;

	}
	else { 
		cout << "No" << endl; 
	}

}
