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