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