H, M = map(int, input().split()) st=60*7+30 et=60*8+30 at=H*60+M if at=et: exit(print("No")) print("Late")