#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::ios;
using std::sort;
const int MAX = 1e3 + 2;
int a[MAX];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL), cout.tie(NULL);
  int n = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + n + 1);
  cout << a[(n + 1) / 2] << "\n";
  return 0;
}
