#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstring>
using namespace std;

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(n) rep(i,n)
#define all(n) n.begin(),n.end()

int main()
{
    int n;
    double d,sum;
    cin >> n;
    REP(n){ cin >> d; sum+= d;}

    cout << (int)(sum/n) << endl;

    return 0;
}