#include<iostream>
using namespace std;

int main()
{
    int n, d;

    cin >> n;

    unsigned long long int sum = 0;
    for( int i = 0; i < n; i++ )
    {
        cin >> d;
        sum += d;
    }

    if( sum == 0 || n == 0 )
        cout << 0 << endl;
    else
        cout << sum / n << endl;

    return 0;
}
