#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int V[N];
  for (int i = 0; i < (int)(N); i++) cin >> V[i];
  sort(V, V + N);
  double ans = V[0];
  cout << ans << endl;
  for (int i = 1; i < N; i++) ans = (ans + V[i]) / 2;
  cout << ans << endl;
}
