a,b=map(int,input().split()) m=min(a,b) print(m*2-1 if a==b else m*2)