#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<double> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  sort(begin(v), end(v));
  for (int i = 0; i < n; i++) {
    int mid = (v[0] + v[1]) / 2;
    v[1] = mid;
    v.erase(begin(v));
  }
  for (double x : v) printf("%lf\n", x);
  printf("%lf\n", v[0]);
  return 0;
}
