#include <iostream>

using namespace std;

int main(void){
    int i,j,k,l;
    int n;
    int ave;
    double data;
    long double sum=0;
    
    cin>>n;
    for(i=0;i<n;i++){
        cin>>data;
        sum+=data;
    }
    ave=(int)sum/n;
    cout<<ave<<endl;
    return(0);
}