a,b=map(int,input.split()) print(a+b+max(0,abs(a-b)-1))