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

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 }

    }


    




 import java.util.*; util.* java import java.io.*; io.* java import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 }

    } Main public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 } main {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.next(); str in.next() in.next in boolean x =false; x false for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        } int i = 0 ; int i = 0 ; i 0 i<str.length() i str.length() str.length str i++ i++ i {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        } {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        } if(str.charAt(i)=='7')
            {
                x = true;
            } str.charAt(i)=='7' str.charAt(i) str.charAt str i '7' {
                x = true;
            } x = true x true if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                } x == true x true {
                System.out.println("Yes");
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
                    System.out.println("No");
                } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 }

    } public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 }

    } Main

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

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str = in.next();
        boolean x =false;

        for(int i = 0 ; i<str.length() ; i++)
        {


            if(str.charAt(i)=='7')
            {
                x = true;
            }

        }

            if(x == true)
            {
                System.out.println("Yes");
            }
            else
                {
                    System.out.println("No");
                }




 }

    }


    





