import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    } main {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int input = scanner.nextInt(); input scanner.nextInt() scanner.nextInt scanner String output = "No"; output "No" while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        } input >= 10 input 10 {
            if (input%10 == 7) output = "Yes";
            input/= 10;

        } if (input%10 == 7) output = "Yes"; input%10 == 7 input%10 input 10 7 output = "Yes" output "Yes" input/= 10 input 10 if (input==7) output = "Yes"; input==7 input 7 output = "Yes" output "Yes" System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String output = "No";

        while (input >= 10){
            if (input%10 == 7) output = "Yes";
            input/= 10;

        }
        if (input==7) output = "Yes";
        System.out.println(output);
    }
}
