#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  vector<int> a(t + 1);
  for (int i = 1; i <= t; i++) cin >> a[i];
  sort(a.begin(), a.end());
  if (t % 2 == 0)
    cout << a[t / 2] << endl;
  else
    cout << a[t / 2 + 1] << endl;
}
