#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  if (n == 1) {
    cout << v[0] << endl;
    return 0;
  }
  if (n % 2 == 0) {
    cout << v[n / 2 - 1] << endl;
    return 0;
  }
  cout << v[n / 2] << endl;
  return 0;
}
