#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 100;
const int inf = 1e9 + 7;
const int mod = 1e9 + 7;
int n;
int a[10];
map<int, int> ans;
int mx, res = 12020;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(a, a + n);
  if (n == 1)
    return cout << a[0], 0;
  else if (n == 2)
    return cout << min(a[0], a[1]), 0;
  else {
    cout << a[n / 2];
  }
  return 0;
}
