function setUp(input) {
  input = input.split("\n");
  A = Number(input[0].split(" ")[0]);
  B = Number(input[0].split(" ")[1]);
  main();
}
function main() {
  var count = 0;
  if (A > B) {
    count += A;
    A--
  } else {
    count += B;
    B--
  }
  if (A > B) {
    count += A;
    A--
  } else {
    count += B;
    B--
  }
  console.log(count);
}

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