#include <iostream>
#include <math.h>
#include <string>
#include <stdio.h>
#include <algorithm>
#include <queue>
#include <stack>
#include <functional>
#include <iomanip>
//#include <bits/stdc++.h>
#define micro 0.01

using namespace std;

int main()
{
	int n;
	cin >> n;
	if (n / 100 == 7)
	{
		cout << "Yes" << endl;
		return;
	}
	else
	{
		int a;
		a = n / 100;
		n -= a * 100;
	}
	if (n / 10 == 7)
	{
		cout << "Yes" << endl;
		return;
	}
	else
	{
		int a;
		a = n / 10;
		n -= a * 10;
	}
	if (n == 7)
	{
		cout << "Yes" << endl;
		return;
	}
	else
	{
		cout << "No" << endl;
	}
}
