import java.util.Scanner

object Main extends App  {
  val sc = new Scanner(System.in)
  val a = sc.nextInt
  val b = sc.nextInt

  val res = List(a + (a - 1), a + b, b + (b - 1) ).max

  println(res)
}
