#include <bits/stdc++.h>
using namespace std;
bool agb(pair<long long, long long> a, pair<long long, long long> b) {
  return a.first * b.second > b.first * a.second;
}
void merge(pair<long long, long long> &a, pair<long long, long long> b) {
  a.first += b.first;
  a.second += b.second;
}
void solve(vector<long long> a, long long n) {
  vector<pair<long long, long long>> s;
  for (long long x : a) {
    if (s.empty()) {
      s.push_back({x, 1});
    } else {
      pair<long long, long long> nxt(x, 1);
      while (s.size() && agb(s.back(), nxt)) {
        merge(nxt, s.back());
        s.pop_back();
      }
      s.push_back(nxt);
    }
  }
  long long i = 0;
  vector<double> ans(n);
  for (auto [sum, cnt] : s) {
    double avg = sum * 1.0 / cnt;
    while (cnt--) {
      ans[i] += avg;
      i++;
    }
  }
  for (double u : ans) cout << u << '\n';
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout << fixed << setprecision(12);
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  solve(a, n);
  return 0;
}
