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