a,b=map(int,input().split()) print(a+b-abs(a-b) if a!=b else a+b-1)