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