a, b = map(int, input().split()) ans = a + b if a != b: ans += abs(a-b) - 1 print("{}".format(ans))