#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int N[n + 10];
  for (int i = 0; i < n; i++) cin >> N[i];
  if (n == 1) {
    cout << N[0] << endl;
    return 0;
  }
  sort(N, N + n);
  int sz = (n / 2);
  if (n % 2 == 0)
    cout << N[sz - 1] << endl;
  else
    cout << N[sz] << endl;
}
