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