#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ;
  int n;
  int a[1000000];
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  vector<pair<long double, int>> b;
  for (int i = n - 1; i >= 0; --i) {
    b.push_back({a[i], 1});
    for (int j = b.size() - 1; j >= 1; --j) {
      if (b[j].first < b[j - 1].first) break;
      b[j - 1].first =
          (b[j].first * b[j].second + b[j - 1].first * b[j - 1].second) /
          (b[j].second + b[j - 1].second);
      b[j - 1].second += b[j].second;
      b.pop_back();
    }
  }
  for (int i = b.size() - 1; i >= 0; --i)
    for (int j = 0; j < b[i].second; ++j) printf("%0.9f\n", b[i].first);
}
