import sequtils, strutils var a, b: int (a, b) = stdin.readLine.split.map parseInt echo if a == b: a * 2 - 1 else: min(a, b) * 2