using System;
using System.Linq;

namespace ConsoleApp12
{
    class Program
    {
        static void Main(string[] args)
        {

            string i =  Console.ReadLine();
            if (i.Contains("7")) Console.WriteLine("Yes");
            else Console.WriteLine("No");
        }
    }
}
