#include <bits/stdc++.h>
int main() {
  int n, b, i, j, k, temp, w;
  scanf("%d", &n);
  long long int arr[n];
  for (i = 0; i < n; i++) {
    scanf("%lld", &arr[i]);
  }
  for (j = 0; j < n - 1; j++) {
    for (k = 0; k < n - 1; k++) {
      if (arr[k] < arr[k + 1]) {
        temp = arr[k];
        arr[k] = arr[k + 1];
        arr[k + 1] = temp;
      }
    }
  }
  if (n % 2 == 0) {
    w = (n / 2);
    printf("%lld", arr[w]);
  } else {
    w = (n - 1) / 2;
    printf("%lld", arr[w]);
  }
  return 0;
}
