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