#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int n;
  cin >> n;
  vector<int> years(n);
  for (int i = 0; i < n; i++) {
    cin >> years[i];
  }
  sort((years).begin(), (years).end());
  cout << years[years.size() / 2];
  return 0;
}
