import java.util.*;
public class Main{

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main{

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    } main {
        Scanner sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int dig=sc.nextInt(); dig sc.nextInt() sc.nextInt sc int temp; temp int flag=0; flag 0 for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        } {
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        } temp=dig%10 temp dig%10 dig 10 dig=dig/10 dig dig/10 dig 10 if(temp==7){
                flag=flag+1;
                break;
            } temp==7 temp 7 {
                flag=flag+1;
                break;
            } flag=flag+1 flag flag+1 flag 1 break; if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        } flag==1 flag 1 {
            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 sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} public class Main{

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} Main
import java.util.*;
public class Main{

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int dig=sc.nextInt();
        int temp;
        int flag=0;
        for(int i=0;i<3;i++){
            temp=dig%10;
            dig=dig/10;
            if(temp==7){
                flag=flag+1;
                break;
            }
            

        }
        if(flag==1)
        {
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
}
