output_description: Print the maximum number of coins you can get.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B
attempt: import sys
  
  read = sys.stdin.readline
  
  
  def read_ints():
      return list(map(int, read().split()))
  
  
  def read_a_int():
      return int(read())
  
  
  def read_matrix(H):
      """
      H is number of rows
      """
      return [list(map(int, read().split())) for _ in range(H)]
  
  
  def read_map(H):
      """
      H is number of rows
      文字列で与えられた盤面を読み取る用
      """
      return [read() for _ in range(H)]
  
  
  def read_col(H, n_cols):
      """
      H is number of rows
      n_cols is number of cols
  
      A列、B列が与えられるようなとき
      """
      ret = [[] for _ in range(n_cols)]
      for _ in range(H):
          tmp = list(map(int, read().split()))
          for col in range(n_cols):
              ret[col].append(tmp[col])
  
      return ret
  
  
  A, B = read_ints()
  
  if A == B:
      print(A + B)
  else:
      tmp = max(A, B)
      print(tmp + tmp - 1)
  
problem_description: Statement
  
  There are two buttons, one of size A and one of size B.
  
  When you press a button of size X, you get X coins and the size of that button
  decreases by 1.
  
  You will press a button twice. Here, you can press the same button twice, or
  press both buttons once.
  
  At most how many coins can you get?
samples: [{"input": "5 3", "output": "9\n    \n\nYou can get 5 + 4 = 9 coins by pressing the button of size 5 twice, and this\nis the maximum result.\n\n* * *"}, {"input": "3 4", "output": "7\n    \n\n* * *"}, {"input": "6 6", "output": "12"}]