import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String s = String.valueOf(n); s String.valueOf(n) String.valueOf String n String[] a = s.split(""); a s.split("") s.split s "" boolean judge = false; judge false for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		} {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		} if(a[i].equals("7")) {
				judge = true;
				break;
			} a[i].equals("7") a[i].equals a[i] a i "7" {
				judge = true;
				break;
			} judge = true judge true break; if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} judge == true judge true {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String s = String.valueOf(n);
		String[] a = s.split("");
		boolean judge = false;
		
		for(int i = 0; i < a.length; i++) {
			if(a[i].equals("7")) {
				judge = true;
				break;
			}
		}
		if(judge == true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}
