#include <iostream>
#include<vector>
#include<string>
#include<sstream>
#include<chrono>
#include<algorithm>
#include<functional>
#include<cstdlib>
#include<queue>
#include<stack>
using namespace std;

int main()
{

	std::string s;
	cin >> s;
	bool flag = false;
	for (char c : s)
	{
		if (c == '7') {
			flag = true;
			break;
		}

	}
	if (flag)
	{
		std::cout << "Yes";
	}
	else
		std::cout << "No" << std::endl;

}