#include<iostream>
using namespace std;
int main(){
  long long n,nmon;
  long long sum=0,avr;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>nmon;
    sum+=nmon;
  }
  avr=sum/n;
  cout<<avr<<endl;
  return 0;
}