import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    }
} Main public static void main(String[] args){
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    } main {
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    } Boolean flag = false; flag false Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String N = scan.nextLine(); N scan.nextLine() scan.nextLine scan char[] Narray = N.toCharArray(); Narray N.toCharArray() N.toCharArray N for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        } char ln Narray {
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        } {
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        } if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            } ln == '7' ln '7' {
                System.out.println("Yes");
                flag = true;
                break;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" flag = true flag true break; if(flag == false)
            System.out.println("No"); flag == false flag false 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){
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    }
} public class Main{
    public static void main(String[] args){
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Boolean flag = false;
        Scanner scan = new Scanner(System.in);
        String N = scan.nextLine();
        char[] Narray = N.toCharArray();
        for(char ln :Narray){
            if(ln == '7'){
                System.out.println("Yes");
                flag = true;
                break;
            }
        }
        if(flag == false)
            System.out.println("No");
    }
}