ABC = list(map(int, input().split())) ABC.sort() print(ABC.pop() - ABC.pop())