fun readInt(): Int {
    val N: Int = readLine()!!.toInt()
    return N
}

fun readString(): String {
    val N: String = readLine()!!
    return N
}

fun main() {
    if (readString().contains('7')){
        println("Yes")
    } else {
        println("No")
    }
}