// No.1883 SLASH package main import ( "fmt" "sort" "strconv" ) func main() { var s string fmt.Scan(&s) x := make([]int, 3) for i, v := range s { x[i], _ = strconv.Atoi(string(v)) } sort.Ints(x) fmt.Println(x[2] - x[0]) }