package main import ( "fmt" "math" ) func main() { // 4 7 3 // 3 2 1 var a, b, c int fmt.Scan(&a, &b, &c) cal1 := math.Abs(float64(b - a)) cal2 := math.Abs(float64(b - c)) cal3 := math.Abs(float64(a - c)) fmt.Println(math.Min(math.Min(cal1, cal2), cal3)) }