#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, p;
  scanf("%d", &n);
  vector<int> v;
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    v.push_back(x);
    for (int j = 0; j < v.size(); j++) {
      if (v[i] > v[j]) {
        p = v[i];
        v[i] = v[j];
        v[j] = p;
      }
    }
  }
  if (n == 1) {
    printf("%d", v[0]);
  } else {
    while (true) {
      v.erase(v.begin());
      n--;
      if (n == 1) {
        break;
      }
      v.pop_back();
      n--;
      if (n == 1) {
        break;
      }
    }
    printf("%d ", v[0]);
  }
  return 0;
}
