#coding: euc-jp
class Main
  def self.main
    a = read
    if a[0] == a[1] then
      puts a[0] * 2
    else
      i = a[0] < a[1] ? 1 : 0
      puts a[i] * 2 - 1
    end
  end

  def self.read
    gets.chomp.split.map(&:to_i)
  end
end

Main.main
