#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  long long a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  vector<pair<long double, int> > v;
  for (int i = 0; i < n; i++) {
    v.push_back({a[i] * 1.0, 1});
    int sz = v.size();
    while (sz > 1 && v[sz - 1].first < v[sz - 2].first) {
      v[sz - 2].first = (v[sz - 2].first * v[sz - 2].second +
                         v[sz - 1].first * v[sz - 1].second) /
                        (v[sz - 2].second + v[sz - 1].second);
      v[sz - 2].second += v[sz - 1].second;
      v.pop_back();
      --sz;
    }
  }
  cout << fixed << setprecision(15);
  for (pair<long double, int> z : v)
    for (int i = 0; i < z.second; i++) cout << z.first << "\n";
}
