var arr=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}

if( arr[0] < arr[1] ) {
  var temp = arr[0]
  arr[0] = arr[1]
  arr[1] = temp
}

switch (arr[0] == arr[1]) {
case true:
	print( arr[0] * 2 )
default:
  	print( arr[0] + arr[0] - 1 )
}