#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
long long mod = 1e9 + 7;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n + 1], i, j;
  for (i = 1; i <= n; ++i) cin >> a[i];
  vector<pair<long long, int> > v;
  v.clear();
  pair<long long, int> p;
  for (i = 1; i <= n; ++i) {
    p = {a[i], 1};
    while (!v.empty() and
           v.back().first * p.second > p.first * v.back().second) {
      p.first += v.back().first;
      p.second += v.back().second;
      v.pop_back();
    }
    v.push_back(p);
  }
  cout.precision(10);
  for (auto it : v) {
    j = it.second;
    while (j--) cout << (it.first * 1.0) / it.second << '\n';
  }
  return 0;
}
