object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val ls = in.map(_.split(' ').map(_.toInt)).head
  val A = ls(0)
  val B = ls(1)
  val max = Math.max(A,B)
  val ret = if(A==B) max + max else max + max - 1
  println(ret)
}
