function Main(input) {
    // console.log(input);
    var tmp = input.split("\n");
    tmp = tmp[0].split(" ");
    var a = parseInt(tmp[0]);
    var b = parseInt(tmp[1]);

    var score = 0;
    if (a >= b) {
        score += a;
        a -= 1;
    } else {
        score += b;
        b -= 1;
    }
    if (a >= b) {
        score += a;
        a -= 1;
    } else {
        score += b;
        b -= 1;
    }
    console.log(score)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));