#include <bits/stdc++.h>
using namespace std;
struct Interval {
  double val;
  double sz;
  Interval() {}
  Interval(int x) {
    val = x;
    sz = 1;
  }
  Interval(double x, double y) {
    val = x;
    sz = y;
  }
  void mix(Interval i) {
    double water = val * sz + (i.val * i.sz);
    double nsz = sz + i.sz;
    val = water / nsz;
    sz = nsz;
  }
};
double ans[1123456];
stack<Interval> s;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    scanf("%d", &x);
    Interval curr(x);
    while (!s.empty() && s.top().val > curr.val) {
      curr.mix(s.top());
      s.pop();
    }
    s.push(curr);
  }
  for (int i = 0; i < n; ++i) {
    if (s.top().sz > 0) {
      ans[i] = s.top().val;
      Interval temp = s.top();
      s.pop();
      temp.sz--;
      s.push(temp);
    } else {
      s.pop();
      --i;
    }
  }
  for (int i = n - 1; i >= 0; --i) printf("%.12lf\n", ans[i]);
  return 0;
}
