s = gets.chomp.chars n = s.size m = s.count 'o' s.each_with_index {|c, i| puts sprintf "%.13f", (100.0 * m / n) n -= 1 m -= 1 if c == 'o' }