#include <bits/stdc++.h>
using namespace std;
const long long N = 1000010;
inline long long read() {
  long long s = 0, w = 1;
  register char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    s = (s << 3) + (s << 1) + (ch ^ 48), ch = getchar();
  return s * w;
}
long long n, a[N];
long long sta1[N], sta2[N], tp;
signed main() {
  n = read();
  for (register long long i = 1; i <= n; i++) a[i] = read();
  for (register long long i = 1; i <= n; i++) {
    long long P = a[i], Q = 1;
    while (sta2[tp] * P < sta1[tp] * Q && tp) P += sta1[tp], Q += sta2[tp--];
    sta1[++tp] = P, sta2[tp] = Q;
  }
  for (register long long i = 1; i <= tp; i++)
    for (register long long j = 1; j <= sta2[i]; j++)
      printf("%.12lf\n", (double)sta1[i] / (double)sta2[i]);
  return 0;
}
