import java.util.Scanner;

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

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    }
} 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();

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        } Integer.toString(n).contains("7") Integer.toString(n).contains Integer.toString(n) Integer.toString Integer n "7" {
            System.out.print("Yes");
            return;
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" return; System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    }
} Main
import java.util.Scanner;

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

        if(Integer.toString(n).contains("7")) {
            System.out.print("Yes");
            return;
        }
        System.out.print("No");
    }
}
