#include <bits/stdc++.h>
using namespace std;
void debug() { cout << endl; }
template <typename T, typename... Args>
void debug(T a, Args... args) {
  cout << a << ' ';
  debug(args...);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<pair<double, int>> v;
  for (int i = 0, gon = n; i < gon; ++i) {
    int x;
    cin >> x;
    v.push_back({x, 1});
    int sz = v.size();
    while (sz > 1 && v[sz - 1].first <= v[sz - 2].first) {
      double a = v[sz - 2].first * v[sz - 2].second;
      double b = v[sz - 1].first * v[sz - 1].second;
      double c = v[sz - 1].second + v[sz - 2].second;
      v.pop_back();
      v.pop_back();
      v.push_back({(a + b) / c, c});
      sz--;
    }
  }
  cout << fixed << setprecision(10);
  for (auto &x : v) {
    while (x.second--) {
      cout << x.first << '\n';
    }
  }
}
