#include <bits/stdc++.h>
using namespace std;
int main() {
  long long c = 0, n;
  cin >> n;
  long long a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  cout << a[(n - 1) / 2] << endl;
  return 0;
}
