#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template <class T>
using vv = vector<vector<T>>;
template <class T>
inline bool MX(T &l, const T &r) {
  return l < r ? l = r, 1 : 0;
}
template <class T>
inline bool MN(T &l, const T &r) {
  return l > r ? l = r, 1 : 0;
}
const ll MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  int n;
  cin >> n;
  vector<ll> a(n);
  for (int(i) = 0; (i) < (n); ++(i)) cin >> a[i];
  vector<pll> re;
  reverse((a).begin(), (a).end());
  for (ll x : a) {
    ll cnt = 1;
    while (re.size()) {
      ll nx = x + re.back().first;
      ll nc = cnt + re.back().second;
      if (nx * cnt > x * nc) break;
      re.pop_back();
      x = nx;
      cnt = nc;
      ;
    }
    re.emplace_back(x, cnt);
  }
  reverse((re).begin(), (re).end());
  ;
  for (auto p : re) {
    double tmp = double(p.first) / p.second;
    for (int(_) = 0; (_) < (p.second); ++(_)) cout << tmp << "\n";
  }
  return 0;
}
