#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, g;
  while (cin >> a) {
    vector<int> v;
    for (b = 1; b <= a; b++) {
      cin >> c;
      v.push_back(c);
    }
    sort(v.begin(), v.end());
    d = 0;
    e = a - 1;
    f = 0;
    while (1) {
      f++;
      if (f == a) {
        g = v[d];
        break;
      }
      if (f % 2 != 0) {
        e--;
      } else {
        d++;
      }
    }
    cout << g << endl;
    v.clear();
  }
  return 0;
}
