#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define F first
#define S second
const int mod = 1e9+7, A = 1e2+5;

int main()
{
	ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	string s;
	cin >> s;
	for (auto i : s)
		if (i == '7')
			return cout << "Yes", 0;
	cout << "No";
	return 0;
}
