let [|h; m|] = stdin.ReadLine().Split " " |> Array.map int let time = h * 60 + m if time < 7 * 60 + 30 then printfn "Yes" elif time < 8 * 60 + 30 then printfn "Late" else printfn "No"