#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, sum = 0, ans, c, d, t = 0;
  long long int n, m;
  vector<long long int> v, v1, v2;
  cin >> n;
  c = n / 2;
  long long int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  if (n % 2 == 0) {
    cout << a[c - 1] << endl;
  } else
    cout << a[c] << endl;
  return 0;
}
