import java.util.*;
public class Main
{
    public static void main(String args[])
    {
        Scanner in=new Scanner(System.in);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    }
} import java.util.*; util.* java public class Main
{
    public static void main(String args[])
    {
        Scanner in=new Scanner(System.in);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    }
} Main public static void main(String args[])
    {
        Scanner in=new Scanner(System.in);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    } main {
        Scanner in=new Scanner(System.in);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    } Scanner in=new Scanner(System.in); in new Scanner(System.in) int n n num num rem; rem n=in.nextInt() n in.nextInt() in.nextInt in num=n num n while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        } num!=0 num 0 {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        } rem=num%10 rem num%10 num 10 if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            } rem==7 rem 7 {
                System.out.println("Yes");
                System.exit(0);
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 num=num/10 num num/10 num 10 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);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    }
} public class Main
{
    public static void main(String args[])
    {
        Scanner in=new Scanner(System.in);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    }
} Main
import java.util.*;
public class Main
{
    public static void main(String args[])
    {
        Scanner in=new Scanner(System.in);
        int n,num,rem;
        n=in.nextInt();
        num=n;
        while(num!=0)
        {
            rem=num%10;
            if(rem==7)
            {
                System.out.println("Yes");
                System.exit(0);
            }
            num=num/10;
        }
        System.out.println("No");
    }
}
