local a, b, c = string.match(io.read(), "(%d+) (%d+) (%d+)")
a, b, c = tonumber(a), tonumber(b), tonumber(c)

local arr = {
    a, b, c
}

local max = 0
local min = 0

for i = 1, 3 do
    if max == 0 then
        max = arr[i]
    elseif arr[i] > max then
        max = arr[i]
    end

    if min == 0 then
        min = arr[i]
    elseif arr[i] < min then
        min = arr[i]
    end
end

local output = max - min

print(tostring(output))