#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  vector<double> value(N + 1), sum(N + 1), choice(N + 1);
  for (int i = 1; i <= N; i++) {
    int v;
    scanf("%d", &v);
    sum[i] = value[i] = v;
    sum[i] += sum[i - 1];
  }
  choice[N] = N;
  for (int i = N - 1; i > 0; i--) {
    choice[i] = i;
    while (choice[i] + 1 <= N) {
      int j = choice[i] + 1;
      if ((sum[choice[i]] - sum[i - 1]) * (choice[j] - j + 1) <
          (sum[choice[j]] - sum[j - 1]) * (choice[i] - i + 1))
        break;
      choice[i] = choice[j];
    }
  }
  for (int i = 1; i <= N;) {
    int j = choice[i];
    double v = (sum[choice[i]] - sum[i - 1]) / (choice[i] - i + 1);
    for (int k = i; k <= j; k++) {
      value[k] = v;
    }
    i = j + 1;
  }
  for (int i = 1; i <= N; i++) {
    printf("%.10f\n", value[i]);
  }
}
