package main import ( "fmt" "sort" ) func main() { h := make([]int, 3) for i := range h { fmt.Scan(&h[i]) } sort.Sort(sort.Reverse(sort.IntSlice(h))) fmt.Println(h[0], h[1], h[2]) }