#include <iostream>
#include <string>
#include <cmath>
#include <vector>


using namespace std;



int main()
{
	string in;

	cin >> in;

	if (string::npos != in.find('7'))
	{
		cout << "Yes";
	}
	else
	{
		cout << "No";
	}
}