a,b = map(int,input().split()) if a < b: a,b = b,a a -= 1 print(b+min(a,b))