#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[1003];
  bool isDeleted[1003];
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n - 1; i++) {
    if (i % 2 == 0) {
      int mx = 0;
      int index_of_mx = 0;
      for (int j = 0; j < n; j++) {
        if (!isDeleted[j] && a[j] > mx) {
          mx = a[j];
          index_of_mx = j;
        }
      }
      isDeleted[index_of_mx] = true;
    } else {
      int mn = 1e9;
      int index_of_mn = 0;
      for (int j = 0; j < n; j++) {
        if (!isDeleted[j] && a[j] < mn) {
          mn = a[j];
          index_of_mn = j;
        }
      }
      isDeleted[index_of_mn] = true;
    }
  }
  for (int i = 0; i < n; i++)
    if (!isDeleted[i]) cout << a[i];
  return 0;
}
