a, b = map(int, input().split()) print("Yes" if a == b else "Yes" if min(a, b) == 2 and max(a, b) == 4 else "No")