// yukicoder: No.667 Mice's Luck(ネズミ達の運) // bal4u 2019.8.19 #include //// 入出力関係 #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif #define FLEN 7 // 小数点以下7桁 void outdbl(int a, int b) { int i, n; char buf[30]; if (a == 0) { pc('0'), pc('\n'); return; } n = a/b; if (n == 0) pc('0'); else { i = 0; while (n) buf[i++] = n % 10 + '0', n /= 10; while (i--) pc(buf[i]); } a %= b; if (a) { pc('.'), i = FLEN; while (a && i--) a *= 10, pc('0'+ a/b), a %= b; } pc('\n'); } void outs(char *s) { while (*s) pc(*s++); pc('\n'); } char S[100005]; int main() { int i, c, n, m, ok; ok = 0, n = 0; for (n = 0; ; n++) { c = gc(); if (c == 'o') S[n] = 1, ok++; else if (c < ' ') break; } m = n, ok *= 100; for (i = 0; i < n; i++) { outdbl(ok, m); m--; if (S[i]) ok -= 100; if (ok == 0) goto NG; else if (ok == m) goto OK; } return 0; NG: while (++i < n) outs( "0"); return 0; OK: while (++i < n) outs("100"); return 0; }