package main import "fmt" func main() { var s string fmt.Scan(&s) rs := []rune(s) w := rune('w') ma := 0 suc := 0 for i := 0; i < len(rs); i++ { if rs[i] == w { suc++ if suc > ma { ma = suc } } else { suc = 0 } } s = "" for i := 0; i < len(rs); i++ { if rs[i] == w{ suc ++ if suc == ma && len(s) > 0 { fmt.Printf("%s\n",s) } }else { if suc > 0 && len(s) > 0 { s = "" } suc = 0 s += string(rs[i]) } } }