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