'use strict'
let lines = []
let reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
})
reader.on('line', function(line) {
  lines.push(line.split(' '))
})
reader.on('close', function(line) {
  let ans = 0
  let a = lines[0][0]
  let b = lines[0][1]
  if (a > b) {
    ans += a
    a--
  } else {
    ans += b
    b--
  }
  if (a > b) {
    ans += a
  } else {
    ans += b
  }
  console.log(ans) 
})