a,b = map(int,input().split())
if b < a:
    a,b = b,a
    
if a == b:
    print(a+b)
else:
    print(b*2-1)