#include <bits/stdc++.h>
using namespace std;
int a[6];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + 1 + n);
  int s = (n + 1) / 2;
  cout << a[s];
  return 0;
}
