#include <bits/stdc++.h>
using namespace std;
int a[1005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + n + 1);
  int i = 1, j = n, t = 0;
  while (true) {
    if (i == j) break;
    if (t % 2 == 0)
      j--;
    else
      i++;
    t++;
  }
  cout << a[i] << endl;
  return 0;
}
