// #region enum Input { static func int() -> Int { return Int(readLine()!)! } static func ints() -> (Int, Int) { readLine()!.split(separator: " ").map { Int($0)! }[0, 1] } } extension Bool { func print(yes: T, no: T) { Swift.print(self ? yes : no) } } extension String { func print() { Swift.print(self) } } extension Array { subscript(a: Int, b: Int) -> (Element, Element) { (self[a], self[b]) } } // #endregion let (h, m) = Input.ints() var ans = "" if h <= 6 || (h == 7 && m < 30) { ans = "Yes" } else if (h == 8 && m < 30) || h >= 9 { ans = "No" } else { ans = "Late" } ans.print()