import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val s = scanner.next()!!
    val yesOrNo = when (s.any{ it == '7' }) {
        true -> "Yes"
        else -> "No"
    }
    println(yesOrNo)
}
