#include<bits/stdc++.h>
 
#define ll long long 
#define mkp make_pair 
#define fi first 
#define se second
#define pb push_back 
#define pf push_front 
#define ppb pop_back 
#define ppf pop_front 

using namespace std ;
 
int z , o , ans ;
 
int main(){
 

	string s ;
	cin >> s ;

	if( s[0] == '7' || s[1] == '7' || s[2] == '7' ){
		cout << "Yes" << endl ;
	}
	else{
		cout <<"No" << endl;
	}

 
}