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