x,y = [int(i) for i in input().split()] if x == y: print(x*2) else: print(max(l)*2-1)