'use strict';

function Main(input) {
  let A = Number(input.split(" ")[0])
  let B = Number(input.split(" ")[1])

  let ans = 0

  if (A >= B) {
    ans += A
    A--
  } else {
    ans += B
    B--
  }

  if (A >= B) {
    ans += A
    A--
  } else {
    ans += B
    B--
  }

  console.log(ans)
};

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