#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<ll, ll>;
using di = pair<long double, ll>;
const ll MOD = 1e9 + 7, N = 1e5 + 10;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  ll n;
  cin >> n;
  vector<di> val;
  for (ll i = 0; i < n; i++) {
    ll x;
    cin >> x;
    di ee = {x, 1};
    while (!val.empty()) {
      auto k = val.back();
      if (ee.first < k.first) {
        val.pop_back();
        ee.first = (ee.first * ee.second + k.first * k.second) /
                   (ee.second + k.second);
        ee.second += k.second;
      } else {
        break;
      }
    }
    val.push_back(ee);
  }
  cout << setprecision(14) << fixed;
  for (auto &e : val) {
    for (ll i = 0; i < e.second; i++) {
      cout << e.first << '\n';
    }
  }
  return 0;
}
