package main import ( "fmt" "sort" ) func main() { n := make([]string, 3) for i := 0; i < 3; i++ { fmt.Scan(&n[i]) } a := sort.StringSlice(n) fmt.Println(a[1]) }