#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int s = 0;
  char c = getchar();
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') s = s * 10 + c - '0', c = getchar();
  return s;
}
int n, p[1000005], t;
long long a[1000005];
inline double ave(int first, int second) {
  return 1.0 * (a[second] - a[first]) / (second - first);
}
int main() {
  n = read();
  for (int i = 1; i <= n; i++) a[i] = a[i - 1] + read();
  for (int i = 1; i <= n; i++) {
    while (t && ave(p[t - 1], p[t]) > ave(p[t - 1], i)) t--;
    p[++t] = i;
  }
  for (int i = 1; i <= t; i++) {
    double first = ave(p[i - 1], p[i]);
    for (int j = p[i - 1]; j < p[i]; j++) printf("%.10f\n", first);
  }
}
