#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 10;
const int inf = 1 << 28;
long long a[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  long long mid = 0;
  if (n & 1) {
    mid = n / 2;
  } else
    mid = n / 2 - 1;
  cout << a[mid] << endl;
  return 0;
}
