A, B = map(int, input().split()) if A == B: print(A+B-1) else: print(min(A,B)*2)