#include #include #include #include #include using namespace std; #define ll long long #define all(v) v.begin(),v.end() #define bootstrap ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0); void solve() { string boxes; cin >> boxes; double o, x = 0; for (char &ch:boxes) { if (ch == 'x') { x++; } } o = boxes.length() - x; cout.precision(10); for (int i = 0; i < boxes.length(); ++i) { cout << 100 * o / (x + o) << endl; if(boxes.at(i) == 'o') { o --; } else { x --; } } } int main() { bootstrap; solve(); }