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

int main(void){
  int n,result=0;
  vector<int> spending;
  cin >> n;
  for(int i=0;i<n;i++){
    int a;
    cin >> a;
    spending.push_back(a);
  }
  for(int i=0;i<n;i++){
    result = result+spending[i];
  }
  cout << result/n << endl;
  return 0;
}