#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e6 + 10;
long long int n;
long long int arr[N], p[N], total[N], cnt[N];
int main() {
  cout << fixed;
  cout << setprecision(9);
  cin >> n;
  for (long long int i = 0; i < n; i++) cin >> arr[i];
  for (long long int i = 0; i < n; i++) p[i + 1] = p[i] + arr[i];
  for (long long int i = 1; i <= n; i++) {
    total[i] = p[i] - p[i - 1];
    cnt[i] = 1;
    while (cnt[i] < i and
           total[i - cnt[i]] * cnt[i] >= cnt[i - cnt[i]] * total[i]) {
      total[i] += total[i - cnt[i]];
      cnt[i] += cnt[i - cnt[i]];
    }
  }
  vector<long long int> number;
  vector<double> ans;
  for (long long int i = n; i > 0;) {
    number.push_back(cnt[i]);
    ans.push_back((double)total[i] / (double)cnt[i]);
    i -= cnt[i];
  }
  for (long long int i = (long long int)number.size() - 1; i >= 0; i--) {
    for (long long int j = 0; j < number[i]; j++) {
      cout << ans[i] << "\n";
    }
  }
}
