using System;
using System.Linq;
using System.Collections.Generic;

using E = System.Linq.Enumerable;

public class Program
{
    public static void Main()
    {
        var n = Console.ReadLine().Trim();

        Console.WriteLine(n.Contains('7') ? "Yes" : "No");
    }
}
