A, B = map(int, input().split()) if A == B or sorted([A, B]) == [2, 4]: print("Yes") else: print("No")