#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  cin >> n;
  vector<long long> v(n);
  vector<long long> ans(n);
  vector<long long> sz(n);
  for (long long i = 0; i < n; i++) {
    cin >> v[i];
  }
  long long gnow = -1;
  for (long long i = 0; i < n; i++) {
    gnow++;
    ans[gnow] = v[i];
    sz[gnow] = 1;
    while (gnow && ans[gnow - 1] * (sz[gnow - 1] + sz[gnow]) >
                       (ans[gnow - 1] + ans[gnow]) * sz[gnow - 1]) {
      ans[gnow - 1] += ans[gnow];
      sz[gnow - 1] += sz[gnow];
      gnow--;
    }
  }
  for (long long i = 0; i < gnow + 1; i++) {
    for (long long j = 0; j < sz[i]; j++) {
      cout << fixed << setprecision(10) << (double)ans[i] / (double)sz[i]
           << "\n";
    }
  }
}
