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