h,m = map(int,input().split())

if h < 7 or h == 7 and m < 30:
	print('Yes')
elif h > 8 or h == 8 and m >= 30:
	print('No')
else:
	print('Late')