#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n;
  cin >> n;
  vector<long long int> arr;
  long long int inp;
  for (int i = 0; i < n; i++) {
    cin >> inp;
    arr.push_back(inp);
  }
  sort(arr.begin(), arr.end());
  if (n % 2 == 1)
    cout << arr[n / 2] << endl;
  else
    cout << arr[n / 2 - 1] << endl;
}
