a, b, c = map(int, input().split()) print(max[a, b, c] - min[a, b, c])