import scala.io.{StdIn => in}

object Main extends App {
  var Array(a, b) = in.readLine.split(" ").map(_.toInt)
  val res = if(a > b) a else b
  if(res == a) a -= 1 else b -= 1
  val ans = res + (if(a > b) a else b)
  println(ans)
}