object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val A, B = sc.nextInt()

    if (A == B)
      println(A + B)
    else {
      val max = Math.max(A, B)
      println(max + max - 1)
    }

  }

}