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