"use strict";

function Main(input) {
  input = input.split("\n");
  input = input[0].split(" ");
  var A = parseInt(input[0], 10);
  var B = parseInt(input[1], 10);
  var sum = 0;

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

  sum += Math.max(A, B);
  console.log(sum);
}

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