#include <bits/stdc++.h>
using namespace std;
const int N = 51;
int q[N];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> q[i];
  sort(q, q + n);
  int sum = 0;
  sum += q[0];
  for (int i = 1; i < n; i++) {
    sum += q[i];
    sum /= 2;
  }
  cout << sum << endl;
  return 0;
}
