#include <bits/stdc++.h>
#pragma GCC optimize("O3", "unroll-loops")
using namespace std;
inline bool comp(const pair<double, int> &a, const pair<double, int> &b) {
  return a.first * b.second > b.first * a.second;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<pair<double, int>> a;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    a.emplace_back(x, 1);
    while (a.size() > 1 && comp(a[a.size() - 2], a.back())) {
      auto t = a.back();
      a.pop_back();
      a.back().first += t.first;
      a.back().second += t.second;
    }
  }
  cout.precision(20);
  for (auto i : a) {
    for (int j = 0; j < i.second; ++j) {
      cout << (double)i.first / i.second << '\n';
    }
  }
  return 0;
}
