    function Main(input) {
    	tmp = input.split(" ");
    	// convert string from integer using "parseInt"
    	var a = parseInt(tmp[0], 10);
    	var b = parseInt(tmp[1], 10);

      var num1 = a + (a - 1);
      var num2 = a + b;
      var num3 = b + (b - 1);

      //output
      console.log('%d', Math.max(num1, num2, num3));
    }

    // Don't edit this line!
    Main(require("fs").readFileSync("/dev/stdin", "utf8"));