'use strict'
const d = require("fs").readFileSync("/dev/stdin", "utf8"),
      arr = d.split(" "),
      a = parseInt(arr[0], 10),
      b = parseInt(arr[1], 10);
if (a < b) {
  console.log(b + (b-1));
} else if (a == b) {
  console.log(a + b);
} else {
  console.log(a + (a-1));
}