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