function Main(input) {
    var A = parseInt(input[0])
    var B = parseInt(input[1])
    console.log(Math.max(A*2-1, A+B, B*2-1));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));
