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