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