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