'use strict'
const Main=input=>{
    if(input[0]==7||input[1]==7||input[2]==7){
        console.log("Yes");
    }else{
        console.log("No")
    }
}

Main(require("fs").readFileSync("/dev/stdin","utf8"));