#include <bits/stdc++.h>
using namespace std;
void afify() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
const long oo = (long)1e13;
int main() {
  afify();
  int n;
  cin >> n;
  vector<int> v(n);
  for (long i = long(0); i < n; i++) cin >> v[i];
  sort(v.begin(), v.end());
  cout << v[((n + 1) / 2) - 1] << endl;
  return 0;
}
