#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
const int NN = 1e9;
int n;
int a[6];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  sort(a + 1, a + 1 + n);
  cout << a[(n + 1) / 2];
  return 0;
}
