#include<iostream>
#include<cstring>
using namespace std;
char a[10];
bool ff=false;
int main(){
	cin>>a;
	for(int i=0;i<strlen(a);i++){
		if(a[i]=='7'){
			ff=true;
		}
	}
	if(ff){
		cout<<"Yes"<<endl;
	}else{
		cout<<"No"<<endl;
	}
	return 0;
}