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