using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
    public static void Main()
    {
        String input = Console.ReadLine();
        bool flag = false;
        for (int i = 0; i < input.Length; i++)
        {
            if (input[i]=='7') { flag = true; }
        }
        if (flag) { Console.WriteLine("Yes"); }
        else { Console.WriteLine("No"); }
    }
}