import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        }
    } import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        }
    } Main public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        } main {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            } b > 0 b 0 {
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            } int c = b % 10; c b % 10 b 10 if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                } c == 7 c 7 {
                    System.out.println("Yes");
        
                    return;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; b /= 10 b 10 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) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        }
    } public class Main {
 
    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        }
    } Main
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
        
                    return;
                }
                b /= 10;
 
            }
            System.out.println("No");
 
        }
    }
