a, b = map(int, input().split()) if a == b: print(a + b - 1) else: a, b = max(a, b), min(a, b) print(b * 2)