import scala.io.{StdIn => in}

object Main extends App {
  var Array(a, b) = in.readLine.split(" ").map(_.toInt)

  val ans = (0 until 2)./:(0,a,b) {
    case ((acc,a,b), _) => {
      val m = a max b
      val (na,nb) = if(m == a) (a-1,b) else (a,b-1)
      (acc+m, na, nb)
    }
  }._1

  println(ans)
}