"use strict"
function main(arg) {
    const inputs = arg.split("\n")[0].split(" ").map((x)=>{return parseInt(x)})
    const A = inputs[0]
    const B = inputs[1]
    let ans = A
    if (A == B){
        ans = A + B
    }else if(A > B){
        ans = A + A - 1
    }else{
        ans = B + B - 1
    }
    console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));