salary: list[int] = list(map(int, input().split())) min_salary = min(salary) max_salary = max(salary) print(max_salary - min_salary)