#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<pair<long long, long long>> res;
  for (long long i = 0; i < n; i++) {
    long long x;
    long long cnt = 1;
    cin >> x;
    if (res.empty()) {
      res.push_back({x, 1});
      continue;
    }
    while (!res.empty() && cnt * res.back().first > res.back().second * x) {
      x += res.back().first;
      cnt += res.back().second;
      res.pop_back();
    }
    res.push_back({x, cnt});
  }
  for (long long i = 0; i < res.size(); i++) {
    double curAns = 1.0 * res[i].first / res[i].second;
    for (long long j = 0; j < res[i].second; j++) {
      cout << fixed << setprecision(9) << curAns << "\n";
    }
  }
  return 0;
}
