#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
double ans[2000010], a[2000010], b[2000010];
int main() {
  int t;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    int n;
    scanf("%d", &n);
    a[i] = double(n);
  }
  int l = 0;
  for (int i = 1; i <= t; i++) {
    ans[++l] = a[i];
    b[l] = 1;
    while (ans[l] < ans[l - 1] && l > 1) {
      ans[l - 1] = (ans[l - 1] * b[l - 1] + ans[l] * b[l]) / (b[l] + b[l - 1]);
      b[l - 1] += b[l];
      --l;
    }
  }
  for (int i = 1; i <= l; i++) {
    for (int j = 1; j <= b[i]; j++) {
      printf("%.9lf\n", ans[i]);
    }
  }
  return 0;
}
