// In The Name of Almighty Allah
#include<bits/stdc++.h>
using namespace std;
#define             fastio              ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define             ff                  first
#define             ss                  second
#define             int                 long long
#define             pb                  push_back
#define             pf                  push_front
#define             pii                 pair<int,int>
#define             print(x)            for(auto it : x) cout<<it<<' '; cout<<'\n';
#define             debug(x)            cout << #x << " --->> " << x << endl;
#define             mod                 1000000007
#define             inf                 1e18
#define             PI                  (acos(-1))
#define             eps                 (1e-8)
#define             clear(x)            memset(x,0,sizeof(x));


main()
{


	int a, b, c, x, y, z, p, q, r, n, m;
	string s;
	cin >> s;
	bool flag = false;
	for (int i = 0; i < s.size(); i++)
	{
		if (s[i] == '7')
		{
			flag = true;
			break;
		}
	}
	cout << ((flag == true) ? "Yes" : "No") << endl;
}