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