using System;
using static System.Console;
using System.Linq;

namespace AC
{
   public class shiokara
   {
      static void Main(string[] args)
      {
         string n = ReadLine();
         if(n[0] == "7" || n[1] == "7" || n[2] == "7"){
             WriteLine("Yes");
         }else{
             WriteLine("No");
         }
      }
   }
}