import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        String strnum = String.valueOf(a);
        //System.out.println("strnum : " + strnum); 
            if (strnum.contains("7"))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }      
        //System.out.println(a);
        
        //int b = sc.nextInt();

        //System.out.println(String.format("%d",(int)temp));
        
        /*
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
        */
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        String strnum = String.valueOf(a);
        //System.out.println("strnum : " + strnum); 
            if (strnum.contains("7"))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }      
        //System.out.println(a);
        
        //int b = sc.nextInt();

        //System.out.println(String.format("%d",(int)temp));
        
        /*
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
        */
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        String strnum = String.valueOf(a);
        //System.out.println("strnum : " + strnum); 
            if (strnum.contains("7"))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }      
        //System.out.println(a);
        
        //int b = sc.nextInt();

        //System.out.println(String.format("%d",(int)temp));
        
        /*
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
        */
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        String strnum = String.valueOf(a);
        //System.out.println("strnum : " + strnum); 
            if (strnum.contains("7"))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }      
        //System.out.println(a);
        
        //int b = sc.nextInt();

        //System.out.println(String.format("%d",(int)temp));
        
        /*
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
        */
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc String strnum = String.valueOf(a); strnum String.valueOf(a) String.valueOf String a if (strnum.contains("7"))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            } strnum.contains("7") strnum.contains strnum "7" {
                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
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        String strnum = String.valueOf(a);
        //System.out.println("strnum : " + strnum); 
            if (strnum.contains("7"))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }      
        //System.out.println(a);
        
        //int b = sc.nextInt();

        //System.out.println(String.format("%d",(int)temp));
        
        /*
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
        */
    }
}