import java.util.*;

public class Main {
    public static void main(String[] args)
    {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args)
    {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    }
} Main public static void main(String[] args)
    {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    } main {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    } Scanner scan1 = new Scanner(System.in); scan1 new Scanner(System.in) int num = scan1.nextInt(); num scan1.nextInt() scan1.nextInt scan1 String res = "No"; res "No" for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        } {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        } if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            } (num/(int)Math.pow(10, i)) % 10 == 7 (num/(int)Math.pow(10, i)) % 10 (num/(int)Math.pow(10, i)) num (int)Math.pow(10, i) Math.pow Math 10 i 10 7 {
               res = "Yes";
                break;
            } res = "Yes" res "Yes" break; System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
    public static void main(String[] args)
    {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    }
} public class Main {
    public static void main(String[] args)
    {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args)
    {
        Scanner scan1 = new Scanner(System.in);
        int num = scan1.nextInt();
        String res = "No";

        for (int i = 0; i < 3; i++)
        {
            if ((num/(int)Math.pow(10, i)) % 10 == 7) {
               res = "Yes";
                break;
            }
        }
        System.out.println(res);

    }
}
