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