l = [int(i) for i in input().split()] print(max(l)*2-1)