A, B = map(int, input().split()) if A == B: print((A + B) - 1) elif A > B: print((A + B) - (A - B)) elif A < B: print((A + B) - (B - A))