fun main(args: Array<String>) {
    var numList: List<Int> = getInputIntList()

    var a = numList.get(0)
    var b = numList.get(1)

    var num = 0
    if(a < b) {
        num += b
        b -= 1
    } else {
        num += a
        a -= 1
    }

    if(a < b) {
        num += b
        b -= 1
    } else {
        num += a
        a -= 1   
    }
    println(num)
}

fun getInputIntList() : List<Int> {
    val str = readLine()!!.toString()
    return str.split(Regex("\\s+")).map{b -> Integer.parseInt(b)}
}