#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > v;
long long n, sz, tmp;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> tmp;
    sz = 1;
    while (v.size() && tmp * v.back().second <= v.back().first * sz) {
      tmp += v.back().first;
      sz += v.back().second;
      v.pop_back();
    }
    v.push_back({tmp, sz});
  }
  vector<double> ans(n);
  long long ed = 0;
  cout << fixed << setprecision(10);
  for (auto &a : v) {
    double ld = a.first * 1.0 / a.second;
    while (a.second--) {
      ans[ed++] = ld;
    }
  }
  for (long long i = 0; i < n; ++i) cout << ans[i] << '\n';
}
