import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    } main {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int input = scanner.nextInt(); input scanner.nextInt() scanner.nextInt scanner String ans = "No"; ans "No" for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        } ; {
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        } {
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        } if(input == 0) break; input == 0 input 0 break; int a = input % 10; a input % 10 input 10 input = input / 10 input input / 10 input 10 if(a == 7){
                ans = "Yes" ;
                break;
            } a == 7 a 7 {
                ans = "Yes" ;
                break;
            } ans = "Yes" ans "Yes" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scanner = new Scanner(System.in);
        
        int input = scanner.nextInt();

        String ans = "No";
        for(;;){
            if(input == 0) break;
            
            int a = input % 10;
            input = input / 10;
            
            if(a == 7){
                ans = "Yes" ;
                break;
            }
        }
        
        System.out.println(ans);

    }
}
