#include<string>
#include <vector>
#include <algorithm>
#include<cstdlib>
#include <queue>
#include <cmath>
#include <iomanip>
#include<list>
#include<cstring>
#include<cctype>
#include <iostream>


int main(void){
	std::string str;
	std::cin>>str;
	for(int i=0;i<3;i++){
		if(str[i]=='7'){
			std::cout<<"Yes"<<std::endl;
			return 0;
		}
	}
	std::cout << "No" << std::endl;
}
