import java.util.*;
class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        String ans = "No";
        for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        String ans = "No";
        for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        }
        System.out.println(ans);
    }
} Main static Scanner sc=new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args){
        int N = sc.nextInt();
        String ans = "No";
        for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        }
        System.out.println(ans);
    } main {
        int N = sc.nextInt();
        String ans = "No";
        for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        }
        System.out.println(ans);
    } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        } {
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        } if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10; (N%10)==7 (N%10) N 10 7 {
        ans = "Yes";
        break;
        } ans = "Yes" ans "Yes" break; N = N/10 N N/10 N 10 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        String ans = "No";
        for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        }
        else
        N = N/10;
        
        }
        System.out.println(ans);
    }
}