#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
int t;
void solve();
int n;
vector<int> a;
int main() {
  t = 1;
  for (int i = 0; i < t; ++i) {
    solve();
  }
}
void solve() {
  cin >> n;
  a.resize(n);
  for (int i = 0; i < int(n); ++i) {
    cin >> a[i];
  }
  sort((a).begin(), (a).end());
  if (n == 1) {
    cout << a[0];
  }
  if (n == 3) {
    cout << a[1];
  }
  if (n == 5) {
    cout << a[2];
  }
}
