#include <bits/stdc++.h>
using namespace std;
int n, arr[1001], v;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  sort(arr, arr + n);
  if (n % 2 != 0)
    printf("%d", arr[(n / 2)]);
  else
    printf("%d", arr[(n / 2) - 1]);
  return 0;
}
