A,B = map(int,input().split()) if A == B: print(2 * A) else: ans = max(2*max(A,B) -1,0) print(ans)