import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("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 m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		}
		}
	} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		}
		} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int m=0; m 0 for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		} int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		} {
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		} if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        } (N%10)!=7 (N%10) N 10 7 {
				N = (N-(N%10))/10;
				m++;
			} N = (N-(N%10))/10 N (N-(N%10))/10 (N-(N%10)) N (N%10) N 10 10 m++ m {
    		System.out.println("Yes");
			break;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if(m==3){
			System.out.println("No");
		} m==3 m 3 {
			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){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		}
		}
	} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("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 m=0;
		for(int i = 0;i<3;i++){
			if((N%10)!=7){
				N = (N-(N%10))/10;
				m++;
			}			
		else{
    		System.out.println("Yes");
			break;
        }
		if(m==3){
			System.out.println("No");
		}
		}
		}
	}