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

namespace ABC162A
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());

            for (int i = n; i > 0; i /= 10)
            {
                if(i%10 == 7)
                {
                    Console.WriteLine("Yes");
                    return;
                }
            }

            Console.WriteLine("No");
        }
    }
}
