"use strict";
function main(input) {
  let nums = input.split(/\s/).map(s => Number(s));
  let res = 0;
  for (let i = 0; i < 2; i++) {
    if (nums[0] > nums[1]) {
      res += nums[0];
      nums[0]--;
    } else {
      res += nums[1];
      nums[1]--;
    }
  }

  console.log(res);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
