#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  int mn = 1e9;
  map<int, int> mp;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    mp[v[i]] = i;
  }
  sort(v.begin(), v.end());
  if (n % 2)
    cout << v[n / 2] << endl;
  else
    cout << v[n / 2 - 1] << endl;
}
