import java.util.*;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	}
} 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 s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String s = "No"; s "No" while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		} N > 0 N 0 {
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		} if(N % 10 == 7){
			s = "Yes";
			break;
			} N % 10 == 7 N % 10 N 10 7 {
			s = "Yes";
			break;
			} s = "Yes" s "Yes" break; N = N / 10 N N / 10 N 10 System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	}
} Main
import java.util.*;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String s = "No";

		while(N > 0){
			if(N % 10 == 7){
			s = "Yes";
			break;
			}
			N = N / 10;
			
		}
		System.out.println(s);
		
	}
}