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