#include <bits/stdc++.h>
using namespace std;
long long a[1000005];
long double ans[1000005];
int cnt[1000005];
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    cnt[i] = 1;
    ans[i] = a;
    if (!i) continue;
    if (ans[i] < ans[i - 1]) {
      int j = i - 1;
      while (j >= 0 && ans[j] > ans[i]) {
        ans[i] = (cnt[i] * ans[i] + cnt[j] * ans[j]) /
                 (long double)(cnt[i] + cnt[j]);
        cnt[i] += cnt[j];
        j -= cnt[j];
      }
    } else if (ans[i] == ans[i - 1])
      cnt[i] += cnt[i - 1];
  }
  for (int i = n - 1; i >= 0; i -= cnt[i])
    for (int j = i - 1; j > i - cnt[i]; j--) ans[j] = ans[i];
  for (int i = 0; i < n; i++)
    cout << fixed << setprecision(10) << ans[i] << "\n";
  return 0;
}
