const main = stdin => {
  const input = stdin.trim().split('\n')

  const [A, B] = input[0].split(' ').map(x => parseInt(x))
  if (Math.abs(A - B) > 1) {
    console.log(Math.max(A, B) + Math.max(A, B) - 1)
  } else {
    console.log(A + B)
  }
}
// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
