#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, i;
  cin >> n;
  int a[n], sz;
  double val;
  deque<pair<double, int> > q;
  pair<double, int> y;
  for (i = 0; i < n; i++) cin >> a[i];
  q.push_back(make_pair(a[0], 1));
  for (i = 1; i < n; i++) {
    val = a[i];
    sz = 1;
    while (q.size() and val < q.back().first) {
      y = q.back();
      val = (val * sz + y.first * y.second) / (sz + y.second);
      sz += y.second;
      q.pop_back();
    }
    q.push_back(make_pair(val, sz));
  }
  while (!q.empty()) {
    y = q.front();
    while (y.second)
      cout << fixed << setprecision(9) << y.first << '\n', y.second--;
    q.pop_front();
  }
}
