
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                boolean ok = false;
                String stringN = String.valueOf(N);
                
                for(int i= 0; i< 3; i++){
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                }

                if(ok){
                        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 ok = false;
                String stringN = String.valueOf(N);
                
                for(int i= 0; i< 3; i++){
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                }

                if(ok){
                        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 ok = false;
                String stringN = String.valueOf(N);
                
                for(int i= 0; i< 3; i++){
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                }

                if(ok){
                        System.out.println("Yes");
                } else {
                        System.out.println("No");

                }
        } main {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                boolean ok = false;
                String stringN = String.valueOf(N);
                
                for(int i= 0; i< 3; i++){
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                }

                if(ok){
                        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 ok = false; ok false String stringN = String.valueOf(N); stringN String.valueOf(N) String.valueOf String N for(int i= 0; i< 3; i++){
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                } int i= 0; int i= 0; i 0 i< 3 i 3 i++ i++ i {
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                } {
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                } if('7' == stringN.charAt(i)){
                        ok = true;
                        } '7' == stringN.charAt(i) '7' stringN.charAt(i) stringN.charAt stringN i {
                        ok = true;
                        } ok = true ok true if(ok){
                        System.out.println("Yes");
                } else {
                        System.out.println("No");

                } ok {
                        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 ok = false;
                String stringN = String.valueOf(N);
                
                for(int i= 0; i< 3; i++){
                        if('7' == stringN.charAt(i)){
                        ok = true;
                        }
                }

                if(ok){
                        System.out.println("Yes");
                } else {
                        System.out.println("No");

                }
        }
}

        
        