open System let (A, B) = let t = Console.ReadLine().Split() |> Array.map int t.[0], t.[1] if A = B then A + B - 1 else min A B |> (*) 2 |> printf "%i"