A, B = map(int,input().split()) print(A + B + max(0, abs(A - B) - 1))