H, M = map(int, input().split()) hm = H*100+M if hm<730: print("Yes") elif 730<=hm<830: print("Late") else: print("No")