#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  int b[1003];
  for (int i = 0; i < a; i++) {
    cin >> b[i];
  }
  for (int i = 0; i < a; i++) {
    for (int j = i; j < a; j++) {
      if (b[i] > b[j]) {
        int temp = b[i];
        b[i] = b[j];
        b[j] = temp;
      }
    }
  }
  int sum = b[0];
  for (int i = 1; i < a; i++) {
    sum = (sum + b[i]) / 2;
  }
  cout << sum << endl;
  return 0;
}
