#include <bits/stdc++.h>
int main() {
  int n;
  int r;
  scanf("%d", &n);
  int *a = new int[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n - 1; j++) {
      if (a[j] > a[j + 1]) {
        r = a[j];
        a[j] = a[j + 1];
        a[j + 1] = r;
      }
    }
  if (n % 2)
    printf("%d", a[(n - 1) / 2]);
  else
    printf("%d", a[(n / 2) - 1]);
  return 0;
}
