#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  sort(v.begin(), v.end());
  double x = v[0] + v[1];
  x /= 2;
  cout << fixed << setprecision(5) << x << endl;
  for (int i = 2; i < n; i++) x = (x + v[i]) / 2;
  cout << fixed << setprecision(10) << x << endl;
}
