package main

import "fmt"

func main(){
	var N int
	var a, b, c int
	fmt.Scan(&N)

	tmp := N / 100
	a = tmp % 10

	tmp = N / 10
	b = tmp % 10

	c = N % 10
	
	// fmt.Println(a, b, c);
	if a == 7 || b == 7 || c == 7 {
		fmt.Println("Yes");
	}else{
		fmt.Println("No");
	}
}