start = 7*60+30 end = 8*60+30 h, m = map(int, input().split()) time = h*60+m if time < start: print("Yes") elif time >= end: print("No") else: print("Late")