#include<iostream>
#include<vector>
#include<cmath>
#include<limits>
#include<algorithm>
#include<string>
using namespace std;
int main(){
    string n;
	cin>>n;
	if(string::npos==n.find("7")){
		cout<<"No"<<endl;
	}
	else{
		cout<<"Yes"<<endl;
	}
}