#include <bits/stdc++.h>
using namespace std;
long long M = 1e9 + 7;
const long long N = 5e5 + 7;
void solve() {
  long long n;
  cin >> n;
  vector<long long> v;
  for (long long i = 1; i <= n; i++) {
    long long t;
    cin >> t;
    v.push_back(t);
  }
  sort(v.begin(), v.end());
  if (n == 1) cout << v[0];
  if (n == 3) cout << v[1];
  if (n == 5) cout << v[2];
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long q = 1;
  while (q--) {
    solve();
    cout << '\n';
  }
  return 0;
}
