#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <map>
#include <functional>
#include <cmath>
#include <cstdint>
#include <mutex>
#include <thread>
#include <bitset>
#include <utility>

using namespace std;

int main()
{
	string n;
	cin >> n;
	int i;
	for ( i = 0; n[i] != '\0'; i++)
		if (n[i] == '7')
			break;

	if (n[i] == '\0')
		cout << "No";
	else
		cout << "Yes";

	return 0;
}
