import scala.io.StdIn
import scala.math._

object Main {
  def main(args: Array[String]): Unit = {
    val Array(a: Int, b: Int) = StdIn.readLine.split(" ").map(_.toInt)

    println(if (a == b) 2 * a else max(a, b) * 2 - 1)
  }
}