a, b = io.read("*n", "*n") if b < a then a, b = b, a end if a == b then print("Yes") elseif a == 2 and b == 4 then print("Yes") else print("No") end