[<AutoOpen>]
module Program

open System

let read f = stdin.ReadLine() |> f
let reads f = stdin.ReadLine().Split() |> Array.map f

[<EntryPoint>]
let main argv =
    let [|a;b|] = reads int
    if a = b
    then a + b
    else
        let x = max a b
        x + (x - 1)
    |> printfn "%i"
    0