S=gets.chomp.split('') o=S.select{|s|s=='o'}.size.to_f S.each.with_index(0) do |e,i| puts "%.13f" % (o/(S.size-i) * 100) o -= 1 if e == 'o' end