function main(input) {
    var data = input.split(' ');
    var a = parseInt(data[0]);
    var b = parseInt(data[1]);
    var ans = a + b;
    if(a>b){
        ans = 2 * a - 1;
    }else{
        ans = 2 * b - 1;
    }
    console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
