let readString() = stdin.ReadLine()
let readStringArray() = stdin.ReadLine().Split(' ');
let readInt() = readString() |> int
let readIntArray() = readStringArray() |> Array.map(fun x -> int x)
let char2String(value) = List.ofSeq value |> List.toArray |> System.String

let a, b = readIntArray() |> fun x -> (x.[0], x.[1])
if a = b then
    a + b
else if a < b then 
    b + b - 1
else 
    a + a - 1
|> printfn "%d"