fun main(arg: Array<String>) {
    val N = next()
    val seven = N[0] == '7' || N[1] == '7' || N[2] == '7'
    val ans = if (seven) "Yes" else "No"
    return println(ans)
}

fun next() = readLine()!!
