a,b=list(map(int,input().split()));print((max(a+a-1,b+b-1,a+b)))
a,b=list(map(int,input().split()));print((max(a,b)*2-(a!=b)))
a, b = list(map(int, input().split()))
print((max(a + a - 1, b + b - 1, a + b)))

a, b = list(map(int, input().split()))
print((max(a, b) * 2 - (a != b)))

-print((max(a + a - 1, b + b - 1, a + b))) +print((max(a, b) * 2 - (a != b)))