import java.util.Scanner;

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String N = sc.next();

        if(N.contains("7")){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
}