#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout << setprecision(10);
  int N;
  cin >> N;
  vector<pair<long long, int>> stack;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    pair<long long, int> current = {a, 1};
    while (!stack.empty() && current.first * stack.back().second <=
                                 stack.back().first * current.second) {
      current.first += stack.back().first;
      current.second += stack.back().second;
      stack.pop_back();
    }
    stack.push_back(current);
  }
  for (pair<long long, int> &current : stack) {
    double value = (double)current.first / current.second;
    for (int i = 0; i < current.second; i++) cout << value << '\n';
  }
}
