f=lambda h,m:'Yes'if h<7or(h==7and m<30)else'Late'if h==7or(h==8and m<30)else'No'