x=gets.chomp ok=x.chars.count{|e| e=="o" } no=x.size-ok x.chars{|e| puts ok/(ok+no+0.0)*100.0 if e=="o" ok-=1 else no-=1 end }