#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const double eps = 1e-10;
const int maxn = 1e6 + 10;
long long a[maxn];
int cur;
pair<long long, long long> q[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    pair<long long, long long> t(a[i], 1);
    while (cur && t.first * q[cur].second < q[cur].first * t.second) {
      t.first += q[cur].first;
      t.second += q[cur--].second;
    }
    q[++cur] = t;
  }
  for (int i = 1; i <= cur; i++)
    for (int j = 1; j <= q[i].second; j++)
      printf("%.9f\n", q[i].first * 1.0 / q[i].second);
}
