h,m=list(map(int,input().split()))
if h>8 or (h==8 and m>=30):
    print("No")
elif (h==8 and m<30) or (h==7 and m>=30):
    print("Late")
else:
    print("Yes")