function Main(input) {
  "use strict";
	const lines = input.split("\n");
  const line1 = lines[0].split(" ");
  let nums = line1.map(s => parseInt(s, 10));
  let a = nums.pop();
  let b = nums.pop();

  let n = 0;
  for (let i = 0; i < 2; i++) {
      n += a >= b ? a-- : b--;
  }
  console.log( n)
}
// Exec
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
