#include <iostream>

using namespace std;

int main(){
  int n;
  double sum = 0.0,a;

  cin >> n;
  for(int i = 0 ; i < n ; i++){
    cin >> a;
    sum += a;
  }
  cout << (int)(sum/n) << endl;

  return 0;
}