import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    } main {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    } Scanner tan = new Scanner(System.in); tan new Scanner(System.in) int n n a=0 a 0 p=0; p 0 n = tan.nextInt() n tan.nextInt() tan.nextInt tan while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        } n!=0 n 0 {
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        } a=n%10 a n%10 n 10 n=n/10 n n/10 n 10 if(a==7){
                p++;
                break;
            } a==7 a 7 {
                p++;
                break;
            } p++ p break; if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes"); p==0 p 0 System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0,p=0;
        n = tan.nextInt();
        while(n!=0){
            a=n%10;
            n=n/10;
            if(a==7){
                p++;
                break;
            }
        }
        if(p==0)
            System.out.println("No");
        else
            System.out.println("Yes");
    }
}
