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

    if (a >= b) println(a + math.max(a - 1, b))
    else println(b + math.max(a, b - 1))
  }
}
