#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b A){ ll L = A.size(); FOR(i, 0, L){ if(i) cout << ' '; cout << A[i]; } cout << endl; } int main(){ cin.tie(0); ios::sync_with_stdio(false); // input string s; cin >> s; ll L = s.size(); ll ok = 0; ll ng = 0; for(char c : s){ if(c=='o'){ ok++; }else{ ng++; } } FOR(i, 0, L){ double proba = (double)ok / (ok+ng); cout << setprecision(20); p(proba * 100); if(s[i]=='o'){ ok--; }else{ ng--; } } return 0; }