d=list(map(int,input().split())) a=min(d) b=max(d) if a==b: print(a+b-1) else: print(a*2)