import sys input = sys.stdin.readline def main(): H, M = map(int, input().split()) def f(h, m): return 60 * h + m T = f(H, M) ans = "" if T < f(7, 30): ans = "Yes" elif T < f(8, 30): ans = "Late" else: ans = "No" print(ans) if __name__ == "__main__": main()