#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e6 + 10;
int n, siz[MAXN], tot;
double sum[MAXN];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%lf", &sum[++tot]);
    siz[tot] = 1;
    int t = tot;
    while (t > 1 && (sum[t - 1] + sum[t]) / (siz[t - 1] + siz[t]) <=
                        sum[t - 1] / siz[t - 1]) {
      sum[t - 1] += sum[t];
      siz[t - 1] += siz[t];
      t--;
      tot--;
    }
  }
  for (int i = 1; i <= tot; i++)
    for (int j = 1; j <= siz[i]; j++) printf("%.9lf\n", sum[i] / siz[i]);
  return 0;
}
