a,b = map(int,input().split()) if a > b: a,b = b,a if a == b: ans = "Yes" elif a == 2 and b == 4: ans = "Yes" else: ans = "No" print(ans)