#include <bits/stdc++.h>
using namespace std;
const int Z = (int)1e7 + 111;
const int INF = (int)1e9 + 111;
const int MODF = (int)1e9 + 7;
int main() {
  int a[11], n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  cout << a[(n - 1) / 2];
  return 0;
}
