#include <bits/stdc++.h>
using namespace std;
const long long N = 1e3 + 7;
const long double pi = 3.14159265359;
const long long INF = 1e9 + 7;
int n, a[N], pos1, pos2, cnt;
int main() {
  ios_base::sync_with_stdio();
  cin.tie(0);
  cout.tie(0);
  ;
  srand(time(0));
  ;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + 1 + n);
  cout << a[n / 2 + (n % 2)];
}
