#include <bits/stdc++.h>
using namespace std;
using pLL = pair<long long, long long>;
int n;
long long a[1000005];
stack<pLL> S;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%lld", &a[i]);
  for (int i = n; i >= 1; --i) {
    pLL tmp;
    tmp.second = 1;
    tmp.first = a[i];
    while (S.size() && (S.top().first + tmp.first) * tmp.second <
                           (tmp.second + S.top().second) * (tmp.first)) {
      pLL tmp2 = S.top();
      S.pop();
      tmp.first += tmp2.first;
      tmp.second += tmp2.second;
    }
    S.push(tmp);
  }
  while (S.size()) {
    pLL tmp = S.top();
    S.pop();
    for (int i = 1; i <= tmp.second; ++i) {
      printf("%.15lf\n", tmp.first * 1.0 / tmp.second);
    }
  }
}
