"use strict";
function main(input) {
    const args = input.split(' ');

    let A = parseInt(args[0]);
    let B = parseInt(args[1]);

    let ans = 0;

    for(let i = 0; i < 2; i++) {
        if (B < A) {
            ans += A;
            A--;
        } else {
            ans += B;
            B--;
        }
    }

    console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
