#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  vector<long> vt;
  vt.resize(n);
  for (long i = 0; i < n; i++) {
    cin >> vt[i];
  }
  sort(vt.begin(), vt.end());
  cout << vt[(n - 1) / 2] << endl;
}
