import numpy as np

#input

[A,B] = list(map(int,input().split()))

#[A,B] = [5,5]

ans = 0

if A == B:

    ans = 2*A

else:

    ans = 2*max(A,B) - 1

print(ans)


#input

#[A, B] = [5, 3]

[A, B] = list(map(int,input().split()))

if A == B:

    print((2*A))

else:

    print((2*max(A,B)-1))

    



        







    





import numpy as np

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

# input
# [A, B] = [5, 3]
[A, B] = list(map(int, input().split()))
if A == B:
    print((2 * A))
else:
    print((2 * max(A, B) - 1))

-import numpy as np - +# [A, B] = [5, 3] -# [A,B] = [5,5] -ans = 0 -    ans = 2 * A +    print((2 * A)) -    ans = 2 * max(A, B) - 1 -print(ans) +    print((2 * max(A, B) - 1))