"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    let A = ~~arg[0].split(" ")[0];
    let B = ~~arg[0].split(" ")[1];
    
    let answer = 0;
    
    if(A > B) {
        answer += A;
        A--;
    } else {
        answer += B;
        B--;
    }
    
    if(A > B) {
        answer += A;
        A--;
    } else {
        answer += B;
        B--;
    }
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));