package main import ( "bufio" "fmt" "os" "strings" ) func main() { input := bufio.NewScanner(os.Stdin) if input.Scan() { list := strings.Split(input.Text(), "") for e, _ := range list { var count float64 for i := e; i < len(list); i++ { if list[i] == "o" { count++ } } oneProb := 100.0 / float64(len(list)-e) fmt.Printf("%.13f\n", oneProb*count) } } }