A,B=map(int,input().split()) count=0 if AB: small=B big=A else: count=A+B-1 if A!=B: big=big-1 for i in range(1,big): if small-1>=0: count+=1 else: break if big-1>=0: count+=1 else : break print(count)