#include <bits/stdc++.h>
using namespace std;
int v[1005], n;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> v[i];
  sort(v + 1, v + n + 1);
  cout << v[(n + 1) / 2];
  return 0;
}
