#include <bits/stdc++.h>
using namespace std;
const long long MAX = 500 + 5;
const long long MOD = 1e9 + 7;
const long long inf = 1e18;
int main() {
  ios_base::sync_with_stdio(0);
  long long n;
  cin >> n;
  long long arr[n];
  for (long long i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  if (n % 2 == 0) {
    n--;
    cout << arr[n / 2] << endl;
  } else {
    cout << arr[n / 2] << endl;
  }
  return 0;
}
