function Main(input){
	var N = input;	
  	var bool = false;
  	for(var i = 0;i<N.length;i++){
    	if(N[i] == "7"){
        	bool = true;
        }
    }
  	var result = bool?"Yes":"No";
  	console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));