import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String NN =String.valueOf(N); NN String.valueOf(N) String.valueOf String N String ans = "No"; ans "No" if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		} NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7' NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7' NN.charAt(0) == '7' NN.charAt(0) NN.charAt NN 0 '7' NN.charAt(1) == '7' NN.charAt(1) NN.charAt NN 1 '7' NN.charAt(2) == '7' NN.charAt(2) NN.charAt NN 2 '7' {
			ans = "Yes";
		} ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN =String.valueOf(N);
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	}
}