#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 100;
double arr[maxn];
pair<double, int> stk[maxn];
int tot;
int main() {
  int n;
  ios::sync_with_stdio(false);
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%lf", &arr[i]);
  for (int i = 1; i <= n; ++i) {
    double avge_val = arr[i];
    int len = 1;
    while (tot > 0 && stk[tot - 1].first > avge_val) {
      avge_val = avge_val * len + stk[tot - 1].first * stk[tot - 1].second;
      len += stk[tot - 1].second;
      avge_val /= len;
      --tot;
    }
    stk[tot++] = make_pair(avge_val, len);
  }
  for (int i = 0; i < tot; ++i) {
    for (int j = 0; j < stk[i].second; ++j) {
      printf("%.10f\n", stk[i].first);
    }
  }
  return 0;
}
