import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    }
} Main public static void main(String[] args) {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    } main {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = in.nextInt(); n in.nextInt() in.nextInt in if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No"); n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7 n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7 n % 10 == 7 n % 10 n 10 7 (n / 10) % 10 == 7 (n / 10) % 10 (n / 10) n 10 10 7 (n / 100) == 7 (n / 100) n 100 7 out.println("Yes") out.println out "Yes" out.println("No") out.println out "No" out.close() out.close out String[] args args public class Main {

    public static void main(String[] args) {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    }
} public class Main {

    public static void main(String[] args) {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    }
} Main
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // write your code here

        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int n = in.nextInt();

        if(n % 10 == 7 || (n / 10) % 10 == 7  || (n / 100) == 7)
            out.println("Yes");
        else out.println("No");
        out.close();
    }
}
