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