#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> newvec;
  int n;
  int x;
  int ans;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    newvec.push_back(x);
  }
  sort(newvec.begin(), newvec.end());
  if (newvec.size() % 2 == 1) {
    ans = newvec[newvec.size() / 2];
  } else {
    ans = newvec[newvec.size() / 2 - 1];
  }
  cout << ans << endl;
}
