#include <bits/stdc++.h>
using namespace std;

#define mp make_pair
#define pb push_back

#define int int64_t
#define ld long double

const int MOD = 1e9+7;
const int N = 1e6+5;

int32_t main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	string s;
	cin>>s;
	for(char c: s) {
		if(c=='7') {
			cout<<"Yes";
			return 0;
		}
	}	
	cout<<"No";

	return 0;
}