#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n;
  vector<int> V;
  for (int i = 0; i < n; i++) {
    cin >> x;
    V.push_back(x);
  }
  sort(V.begin(), V.end());
  if (n == 1) {
    cout << V[0];
  } else if (n == 2) {
    cout << V[1];
  }
  if (n == 3) {
    cout << V[1];
  } else if (n == 4) {
    cout << V[2];
  }
  if (n == 5) {
    cout << V[2];
  }
}
