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