using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace competition
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            bool isFound = false;
            for (int i = 0; i < 3; i++)
            {
                 
                int rem = a % 10;
                a = a / 10;
                if (rem == 7)
                {
                    isFound = true;
                    break;
                }
            }
            if (isFound==true)
            {
                Console.WriteLine("Yes");
            }
            if (isFound==false)
            {
                Console.WriteLine("No");
            }
        }
            
                
             

        
    }
}


