#include<iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
	int num;
	string res;
	stringstream s;
	cin>>num;
	s<<num;
	s>>res;
	
	for(int i=0;i<res.length();i++){
	if(res[i]=='7'){
		cout<<"Yes";
		break;	
		}
	}
	return 0;
} 