import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String target = scanner.nextLine(); target scanner.nextLine() scanner.nextLine scanner boolean flag = false; flag false for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        } int i = 0; int i = 0; i 0 i < target.length() i target.length() target.length target i++ i++ i {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        } {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        } if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            } target.charAt(i) == '7' target.charAt(i) target.charAt target i '7' {
                flag = true;
                System.out.println("Yes");
                break;
            } flag = true flag true System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if (!flag) {
            System.out.println("No");
        } !flag flag {
            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 scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.nextLine();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yes");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    }
}