using System; class Program { static void Main(string[] args) { var read = Console.ReadLine(); string[] str = read.ToString().Split(" "); int H = int.Parse(str[0]); int M = int.Parse(str[1]); Ans(H, M); } static void Ans(int h, int m) { if (h < 7 || h == 7 && m < 30) { Console.WriteLine("Yes"); } else if (h < 8 || h == 8 && m < 30) { Console.WriteLine("Late"); } else { Console.WriteLine("No"); } } }