using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;

namespace A_ABC162
{
    class MainClass
    {

        // static int[] s;

        public static void Main(string[] args)
        {
            // s = Array.ConvertAll(ReadLine().Split().ToArray(), int.Parse);
            string u = ReadLine();
            if(u[0]=='7' || u[1]=='7' || u[2] =='7'){
                WriteLine("Yes");
            }else{
                WriteLine("No");
            }
            
        }
    }
}
