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