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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '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) String n = in.nextLine(); n in.nextLine() in.nextLine in if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '7')
            out.println("Yes");
        else out.println("No"); n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '7' n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '7' n.charAt(0) == '7' n.charAt(0) n.charAt n 0 '7' n.charAt(1) == '7' n.charAt(1) n.charAt n 1 '7' n.charAt(2)== '7' n.charAt(2) n.charAt n 2 '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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '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);

        String n = in.nextLine();

        if(n.charAt(0) == '7' || n.charAt(1) == '7'  || n.charAt(2)== '7')
            out.println("Yes");
        else out.println("No");
        out.close();
    }
}
