import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String n = scan.nextLine(); n scan.nextLine() scan.nextLine scan String[] array = n.split(""); array n.split("") n.split n "" int frag = 0; frag 0 for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        } String a array {
            if(a.equals("7")){
                frag = 1;
            }
        } {
            if(a.equals("7")){
                frag = 1;
            }
        } if(a.equals("7")){
                frag = 1;
            } a.equals("7") a.equals a "7" {
                frag = 1;
            } frag = 1 frag 1 if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } frag == 1 frag 1 {
            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 public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}