#include <iostream>
#include <string>
using namespace std;
void solve(){
string a;
	cin>>a;
	for(int i=0;i<a.size();i++)
		if(a[i]=='7'){
			cout<<"Yes"<<endl;
			return;
		}
	cout<<"No"<<endl;
}
int main(){
	solve();
	return 0;
}