#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t[2200], ans = 0;
  scanf("%d", &n);
  memset(t, 0, sizeof(t));
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    t[x]++;
  }
  for (int i = 2010; i <= 2100; i++) {
    if (t[i] != 0) {
      ans += t[i];
    }
    if (ans == (n + 1) / 2) {
      cout << i << endl;
      return 0;
    }
  }
}
