import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        if(N.indexOf('7') == -1){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }

    }

}
