package jp.co.who.AtCoder.Exwizards

import scala.io.StdIn

object Main extends App {
  val input = StdIn.readLine().split(" ").map(_.toInt)
  var a = input(0)
  var b = input(1)
  var ret = 0
  ret = exec
  ret += exec
  println(ret)

  def exec() = {
    var ret = 0
    if (a > b) {
      ret = a
      a -= 1
    } else {
      ret = b
      b -= 1
    }
    ret
  }
}