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