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

namespace Main
{
    class Program
    {
        static void Main(string[] args)
        {
            char[] N = ReadLine().ToCharArray();
            WriteLine(N.Contains('7') ? "Yes" : "No");
        }
    }
}