#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s; cin >> s; int x = 0, y = 0; for (char c: s) { if (c == 'o') ++x; else ++y; } cout << fixed << setprecision(10); for (char c: s) { cout << 1.0 * x / (x + y) << endl; if (c == 'o') --x; else --y; } return 0; }