#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
using namespace std;
namespace {

	void chmin(long long& x, long long y)
	{
		if (x > y || x < 0)
			x = y;
	}

	void chmax(long long& x, long long y)
	{
		if (x < y)
			x = y;
	}

	bool isSevenContained(long N)
	{
		int three = N / 100;
		if (three == 7)
			return true;
		N -= three * 100;
		int two = N / 10;
		if (two == 7)
			return true;
		N -= two * 10;
		return N == 7;
	}

	void core()
	{
		long N;
		cin >> N;

		bool ret = isSevenContained(N);
		string out = ret ? "Yes" : "No";
		cout << out;
	}
}

int main()
{
	core();

	return 0;
}

//int main()
//{
//	for (long i = 0; i < 3; ++i)
//	{
//		cout << "Input test" << endl;
//		core();
//		cout << endl;
//	}
//
//	cout << "test ended" << endl;
//
//	int ret;
//	cin >> ret;
//
//	return 0;
//}