import sys readline=sys.stdin.readline A,B=map(int,readline().split()) ans=A+B+max(0,(abs(A-B)-1)) print(ans)