#include <bits/stdc++.h>
using namespace std;
const int MX = 3e5 + 100;
const int INF = 0x3f3f3f3f;
int A[MX];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &A[i]);
  sort(A + 1, A + 1 + n);
  printf("%d\n", A[(n + 1) / 2]);
  return 0;
}
