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