
#include <iostream>
#include<map>
#include<vector>
#include<algorithm>
#include <stdio.h>
#include<set>
#include<string>
#include<math.h>
#include<cmath>
#include<iomanip>
#include<queue>
#include<stack>
#define ll long long
using namespace std;
long double pi = 3.14159265358979323846;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);



int main()
{
	int n;  cin >> n;
	bool b = 0;
	while (n != 0) {
		b =b|| n % 10 == 7;
		n/ = 10;
	}
	if (b)
		cout << "Yes";
	else
		cout << "No";

	return 0;
}