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