import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc boolean ans = false; ans false String[] strArray = new String [3]; strArray new String [3] 3 for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            strArray[i] = String.valueOf(str.charAt(i));
        } {
            strArray[i] = String.valueOf(str.charAt(i));
        } strArray[i] = String.valueOf(str.charAt(i)) strArray[i] strArray i String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        } {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        } if(strArray[i].equals("7")) {
                ans = true;
            } strArray[i].equals("7") strArray[i].equals strArray[i] strArray i "7" {
                ans = true;
            } ans = true ans true if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } ans == true ans true {
            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" sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        boolean ans = false;
        String[] strArray = new String [3];
        for(int i=0;i<3;i++) {
            strArray[i] = String.valueOf(str.charAt(i));
        }
        for(int i=0;i<3;i++) {
            if(strArray[i].equals("7")) {
                ans = true;
            }
        }
        if(ans == true) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    }
}
