import java.util.*;

public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	}

} Main public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	} main {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int N100 = N / 100; N100 N / 100 N 100 int N1 = N % 10; N1 N % 10 N 10 int N10 =( N - (N100 * 100 + N1) )/ 10; N10 ( N - (N100 * 100 + N1) )/ 10 ( N - (N100 * 100 + N1) ) N (N100 * 100 + N1) N100 * 100 N100 100 N1 10 System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No") System.out.println System.out System System.out N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No" N100 == 7 || N10 == 7 || N1 == 7 N100 == 7 || N10 == 7 || N1 == 7 N100 == 7 N100 7 N10 == 7 N10 7 N1 == 7 N1 7 "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	}

} public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int N100 = N / 100;
		int N1 = N % 10;
		int N10 =( N - (N100 * 100 + N1) )/ 10;
		System.out.println(N100 == 7 || N10 == 7 || N1 == 7 ? "Yes" : "No");
	}

}