import scala.io.StdIn

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

  def solve(a: Int, b: Int): Int = {
    List(a + a -1 , a  + b , b + b - 1).max
  }

  println(solve(a, b))
}
  

