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