function Main(input) {
  var a = parseInt(input.split(" ")[0]);
  var b = parseInt(input.split(" ")[1]);
  console.log(Math.max(a, b)*2-1+(a==b));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));