import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    }

} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    } main {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) Boolean flag = true; flag true String[] num = in.nextLine().split(""); num in.nextLine().split("") in.nextLine().split in.nextLine() in.nextLine in "" for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i <= 2 i 2 i++ i++ i {
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        } {
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        } if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            } num[i].equals("7") num[i].equals num[i] num i "7" {
                System.out.print("Yes");
                flag = false;
                break;
            } System.out.print("Yes") System.out.print System.out System System.out "Yes" flag = false flag false break; if(flag){
            System.out.print("No");
        } flag {
            System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    }

} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Boolean flag = true;
        String[] num = in.nextLine().split("");
        for(int i = 0; i <= 2; i++){
            if(num[i].equals("7")){
                System.out.print("Yes");
                flag = false;
                break;
            }
        }
        if(flag){
            System.out.print("No");
        }
    }

}