#include <iostream>
#include <cmath>
using namespace std;

int main() {
  long long int n,m,sum=0,ave;
  cin >> n;
  for(int i=0;i<n;i++) {
    cin >> m;
    sum += m;
  }
  ave = sum/n;
  ave = floor(ave);
  cout << ave << endl;
}