#include <bits/stdc++.h>
using namespace std;
vector<int> a;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    a.push_back(x);
  }
  sort(a.begin(), a.end());
  printf("%d\n", a[(n + 1) / 2 - 1]);
  return 0;
}
