import java.io.*;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws Exception {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    }

} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    public static void main(String[] args) throws Exception {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    }

} Main public static void main(String[] args) throws Exception {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    } main {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    } StringTokenizer st; st BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); read new BufferedReader(new InputStreamReader(System.in)) PrintWriter prnt = new PrintWriter(System.out); prnt new PrintWriter(System.out) String num = read.readLine(); num read.readLine() read.readLine read if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        } num.charAt(0) == '7' num.charAt(0) num.charAt num 0 '7' {
            prnt.println("Yes");
        } prnt.println("Yes") prnt.println prnt "Yes" if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        } num.charAt(1) == '7' num.charAt(1) num.charAt num 1 '7' {
            prnt.println("Yes");
        } prnt.println("Yes") prnt.println prnt "Yes" if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        } num.charAt(2) == '7' num.charAt(2) num.charAt num 2 '7' {
            prnt.println("Yes");
        } prnt.println("Yes") prnt.println prnt "Yes" {
            prnt.println("No");
        } prnt.println("No") prnt.println prnt "No" prnt.close() prnt.close prnt String[] args args public class Main {

    public static void main(String[] args) throws Exception {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    }

} public class Main {

    public static void main(String[] args) throws Exception {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    }

} Main
import java.io.*;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws Exception {
        StringTokenizer st;
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        String num = read.readLine();

        if (num.charAt(0) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(1) == '7') {
            prnt.println("Yes");
        } else if (num.charAt(2) == '7') {
            prnt.println("Yes");
        } else {
            prnt.println("No");
        }
        prnt.close();

    }

}