#include <bits/stdc++.h>
using namespace std;
vector<pair<double, pair<int, int> > > s;
int n, x;
pair<double, pair<int, int> > tmp;
signed main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  for (register int i = 1; (1 < n) ? (i <= n) : (i >= n);
       i += (1 < n) ? 1 : (-1)) {
    cin >> x;
    s.push_back(make_pair(x, make_pair(i, i)));
    while (s.size() > 1 && s[s.size() - 2] > s.back()) {
      tmp = s.back();
      s.pop_back();
      tmp = make_pair((tmp.first * (tmp.second.second - tmp.second.first + 1) +
                       s.back().first * (s.back().second.second -
                                         s.back().second.first + 1)) /
                          (tmp.second.second - s.back().second.first + 1),
                      make_pair(s.back().second.first, tmp.second.second));
      s.pop_back();
      s.push_back(tmp);
    }
  }
  for (auto i : s) {
    for (register int j = 1; (1 < i.second.second - i.second.first + 1)
                                 ? (j <= i.second.second - i.second.first + 1)
                                 : (j >= i.second.second - i.second.first + 1);
         j += (1 < i.second.second - i.second.first + 1) ? 1 : (-1)) {
      printf("%.9lf\n", i.first);
    }
  }
  return 0;
}
