ok = [(4, 2), (2, 4)] AB = tuple(map(int, input().split())) if AB in ok or AB[0] == AB[1]: print("Yes") else: print("No")