#include <iostream>
#include <cmath>
#include <complex>
#include <string>
#include <sstream>
#include <limits>
#include <algorithm>
#include <functional>

using namespace std;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);

	string str;
	cin >> str;

	for (char e : str)
	{
		if (e == '7')
		{
			cout << "Yes";
			return 0;
		}
	}

	cout << "No";

	return 0;
}