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