#include <bits/stdc++.h>
using namespace std;
constexpr int long long bigNum = 1000000007;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n = 0;
  cin >> n;
  vector<double> vec(n);
  for (int i = 0; i < n; i++) {
    cin >> vec[i];
  }
  sort(vec.begin(), vec.end());
  long double ans = 0;
  for (int j = n - 1; j >= 0; j--) {
    for (int i = j; i >= 0; i--) {
      if (j == 1) {
        vec[0] /= 2;
        vec[1] /= 2;
        i = -1;
        j = -1;
        break;
      } else {
        vec[i] /= 2;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    ans += vec[i];
    cout << vec[i] << endl;
  }
  cout << ans;
}
