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