import java.util.Scanner

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

    def foo(a: Int, b: Int, sum: Int = 0, deps: Int = 2): Int = {
      if (deps == 0) sum else {
        if (a < b) {
          foo(a, b - 1, sum + b, deps - 1)
        } else {
          foo(a - 1, b, sum + a, deps - 1)
        }
      }
    }

    val c = foo(A, B)
    println(c)
  }
}
