#include <bits/stdc++.h>
using namespace std;
int n, a[1000006], num[1000006], wei = 0;
double zhi[1000006];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  for (int i = 1; i <= n; i++) {
    zhi[++wei] = (double)a[i];
    num[wei] = 1;
    while (wei > 1 && zhi[wei - 1] > zhi[wei]) {
      zhi[wei - 1] = (zhi[wei - 1] * num[wei - 1] + zhi[wei] * num[wei]) /
                     (double)(num[wei] + num[wei - 1]);
      num[wei - 1] += num[wei];
      wei--;
    }
  }
  for (int i = 1; i <= wei; i++) {
    for (int j = 1; j <= num[i]; j++) {
      printf("%.9f\n", zhi[i]);
    }
  }
}
