import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        return String.valueOf(N).indexOf('7') >= 0;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        return String.valueOf(N).indexOf('7') >= 0;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc System.out.println(solve(N) ? "Yes" : "No") System.out.println System.out System System.out solve(N) ? "Yes" : "No" solve(N) solve N "Yes" "No" sc.close() sc.close sc String[] args args static boolean solve(int N) {
        return String.valueOf(N).indexOf('7') >= 0;
    } solve {
        return String.valueOf(N).indexOf('7') >= 0;
    } return String.valueOf(N).indexOf('7') >= 0; String.valueOf(N).indexOf('7') >= 0 String.valueOf(N).indexOf('7') String.valueOf(N).indexOf String.valueOf(N) String.valueOf String N '7' 0 int N N public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        return String.valueOf(N).indexOf('7') >= 0;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        return String.valueOf(N).indexOf('7') >= 0;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        return String.valueOf(N).indexOf('7') >= 0;
    }
}