import scala.math._

object Main {
  def main(args: Array[String]): Unit = {
    val lines = io.Source.stdin.getLines().toSeq
    println(solve(lines))
  }

  def solve(lines: Seq[String]): String = {
    val Array(a, b) = lines.head.split(" ").map(_.toInt)
    var result = 0
    if (a == b) {
      result = a + b
    } else {
      result = max(a, b) + (max(a, b) - 1)
    }
    result.toString
  }
}
