a,b=map(int,input().split()) c=100*a+b if c>=830: print("No") elif c>=730: print("Late") else: print("Yes")