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