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