#include <bits/stdc++.h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define ld long double
#define fi first
#define se second
#define mp make_pair
#define pb push_back
const ll mod = 1e9 + 7;
int main()
{
	SPEED
	string s;
	cin >> s;
	bool found = false;
	for (int i = 0; i < s.size(); ++i)
	{
		if (s[i]=='7')
		{
			found = true;
			break;
		}
	}
	if (found)
	{
		cout << "Yes";
	}
	else
	{
		cout << "No";
	}
	return 0;
}