#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;

void ABC162A()
{
	int N;
	cin >> N;
	string s = to_string(N);
	for (int i = 0; i < 3; ++i)
	{
		if(s[i] == '7')
		{
			cout << "Yes" << endl;
			return;
		}
	}
	cout << "No" << endl;
}

int main()
{
	ABC162A();
	return 0;
}
