A,B=map(int,input().split()) X=A+B; Y=abs(A-B) print(X+max(0,Y-1))