//Bi-smi llāh

#include<bits/stdc++.h>
using namespace std;
#define nn '\n'
#define watch(x) cout << (#x) <<" is "<<(x)<<endl;
#define pb push_back
#define F(i, n) for(int i = 0; i < n; ++i)
#define Fe(i, n) for(auto i: n)
#define  ll long long int



int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n; cin >> n;
	while(n){
			if(n % 10 == 7){
					cout << "Yes" << nn;
					return 0;
				}
			n /= 10;
		}
	cout << "No" << nn;
	return 0;
	}
