a,b=map(int,input().split()) if a>b:a,b=b,a print(a+b+(0 if b==a else b-a-1))