I,R,P=input,range,print def J(): return map(int,I().split()) H,M=J() if H < 7 or (H == 7 and M < 30):P("Yes") elif H==7 or (H==8 and M < 30):P("Late") else:P("No")