package main import ( "fmt" ) func main() { var s string fmt.Scan(&s) sRune := []rune(s) n := make([]rune, len(sRune)) max := make([]rune, len(sRune)) copy(max, sRune) for i:=0; i n[k]{ break } } } } fmt.Println(string(max)) }