#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  if (n == 1) {
    cout << a[0];
    return 0;
  }
  sort(a.begin(), a.end());
  if (a[0] == 2010 && n % 2 == 0) {
    if (n == 2) cout << a[0];
    if (n == 4) cout << a[1];
    return 0;
  }
  if (a[n - 1] == 2100 && n % 2 == 0) {
    if (n == 2) cout << a[n - 1];
    if (n == 4) cout << a[n - 2];
    return 0;
  }
  cout << a[n / 2];
  return 0;
}
