import Foundation
let X = readLine()!
let Y = readLine()!
let x = 0
if (X >= Y){
    x += X
    X -= 1
}else{
    x += Y
    Y -= 1
}
if (X >= Y){
    x += X
    X -= 1
}else{
    x += Y
    Y -= 1
}
print(x)
