#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ar[10], i, s, sum = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> ar[i];
  }
  if (n <= 1)
    cout << ar[0] << endl;
  else {
    sort(ar, ar + n);
    s = n / 2;
    for (i = 0; i < n; i++) {
      sum = sum + ar[i];
      if (i == s) {
        sum = sum - ar[i];
      }
    }
    cout << sum / (n - 1) << endl;
  }
  return 0;
}
