#include <cstdio>
#include <iostream>
#include <string>
#include <algorithm>
#define int long long
#define rep(i, n) for (int i=0; i<n; i++)
#define REP(n) rep(i, n)
using namespace std;

int n, p, sum = 0;

signed main()
{
    cin >> n;

    REP(n)
    {   
        cin >> p;
        sum += p;
    }   

    sum /= n;

    cout << sum << endl;

    return 0;
}