a, b = map(int, input().split()) if a > b: a, b = b, a print('Yes' if a == b or (a, b) == (2, 4) else 'No')