#include #include #include #include #include #include using namespace std; typedef long long int lint; int main() { string S; cin >> S; int Z=S.size(); long double co = 0; long double cx = 0; for (int ia = 0; ia < Z; ia++) { if (S.at(ia) == 'o') { co++; } else { cx++; } } cout << setprecision(8) << co * 100 / (co + cx) << endl; for (int ib = 0; ib < Z; ib++) { if (S.at(ib) == 'o') { co--; } else { cx--; } cout << setprecision(8) << co * 100 / (co + cx) << endl; } }