import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        if (str.contains("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
