fun main(args:Array<String>){
    val l = readLine()!!
    var flag = false
    for(i in 0..2){
        if(l[i].equals('7')){
            flag=true
        }
    }
    if(flag)println("Yes")else println("No")
}