a,b = gets.chomp.split(" ").map(&:to_i);

def get_bigger(a,b)
  if a <= b
    b
  elsif a > b
    a
  end
end

def decrement_num(a,b)
  if a <= b
    [a, b - 1]
  elsif a > b
    [a -1, b]
  end
end

ans = get_bigger(a, b)
a, b = decrement_num(a,b)
ans += get_bigger(a, b)
print ans