function Main(input) {
	var inputArr = input.split("\n");
	var inArr1 = inputArr[0].split(" ");
	var a = parseInt(inArr1[0], 10);
	var b = parseInt(inArr1[1], 10);
  　if (a === b) {
    	console.log(a + b);
    } else if (a > b) {
        console.log(a * 2 - 1);
    } else {
        console.log(b * 2 - 1);
   	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));