import sequtils, strutils let ab = stdin.readLine.split.map parseInt a = ab[0] b = ab[1] echo: if a == b: a * 2 - 1 else: min(a, b) * 2