#include <iostream>

using namespace std;
typedef long long ll;
int main()
{
    ll n;
    cin >> n;
    ll sum = 0, tmp;
    for(int i = 0; i < n; i++) {
        cin >> tmp;
        sum += tmp;
    }
    cout << (sum / n) << endl;
}