import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean judge = false;

        for(int i=0;i<3;i++){
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        }
        if(judge==true){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean judge = false;

        for(int i=0;i<3;i++){
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        }
        if(judge==true){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean judge = false;

        for(int i=0;i<3;i++){
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        }
        if(judge==true){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean judge = false;

        for(int i=0;i<3;i++){
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        }
        if(judge==true){
            System.out.println("Yes");
        }else{
            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 boolean judge = false; judge false for(int i=0;i<3;i++){
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        } {
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        } double a = N/Math.pow(10.0,2.0-i); a N/Math.pow(10.0,2.0-i) N Math.pow(10.0,2.0-i) Math.pow Math 10.0 2.0-i 2.0 i int n = (int)Math.floor(a); n (int)Math.floor(a) Math.floor Math a if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            } n==7 n 7 {
                judge = true;
                break;
            } judge = true judge true break; {
                N -= n*Math.pow(10.0,2.0-i);
            } N -= n*Math.pow(10.0,2.0-i) N n*Math.pow(10.0,2.0-i) n Math.pow(10.0,2.0-i) Math.pow Math 10.0 2.0-i 2.0 i 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
import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean judge = false;

        for(int i=0;i<3;i++){
            double a = N/Math.pow(10.0,2.0-i);
            int n = (int)Math.floor(a);
            if(n==7){
                judge = true;
                break;
            }else{
                N -= n*Math.pow(10.0,2.0-i);
            }
        }
        if(judge==true){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
}