#include <bits/stdc++.h>
using namespace std;

int main()
{
  long res = 0;
  int n;

  cin >> n;
  for (int i = 0; i < n; i++){
    long num;
    cin >> num;
    res += num;
  }

  cout << res / n << endl;
}