package main import . "fmt" import . "strings" func main() { var s string Scan(&s) o := Count(s, "o") x := Count(s, "x") for _, c := range s { Printf("%.12f\n", 100*float64(o)/float64(o+x)) if c=='o' { o-- } else { x-- } } }