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