#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long int n, k = 0, x;
  cin >> n;
  for (long long int i = 0; i < n; i++) cin >> x, k += x;
  cout << k / n;
  return 0;
}
