import scala.io.StdIn._

object Main extends App {

  val Array(a,b) = readLine().split(" ").map(_.toInt)

  def solve() = {
    if(a >= b) {
      a + Math.max(a-1, b)
    } else {
      b + Math.max(b-1, a)
    }
  }

  println(solve())

}

