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