#include<bits/stdc++.h>

#define EB emplace_back
#define int long long
#define F first
#define S second
#define N 100005
#define ALL(x) x.begin(),x.end()
#define endl '\n'
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)


using namespace std;


int32_t main()
{
    IOS;

    int tt=1;
	//cin >> tt;
	while (tt--)
	{
		string s; cin >> s;
		for (int i = 0; i < s.size(); i++)
		{
			if(s[i] == '7') return cout << "Yes",0;
		}
		
		cout << "No";
		
		
	}
    return 0;
}
