import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    } main {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int num = Integer.parseInt(scanner.nextLine()); num Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        } {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        } if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            } num % 10 == 7 num % 10 num 10 7 {
                System.out.println("Yes");
                scanner.close();
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" scanner.close() scanner.close scanner return; num /= 10 num 10 System.out.println("No") System.out.println System.out System System.out "No" scanner.close() scanner.close scanner return; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = Integer.parseInt(scanner.nextLine());
        for (int i = 0; i < 3; i++) {
            if (num % 10 == 7) {
                System.out.println("Yes");
                scanner.close();
                return;
            }
            num /= 10;
        }
        System.out.println("No");
        scanner.close();
        return;
    }
}
