#include <cstdio>

using namespace std;

int main()
{
    double mean = 0;
    int n; double a;
    scanf( "%d\n", &n );
    double times = n;
    while( n > 0 )
    {
        scanf( "%lf\n", &a );
        mean += a;
        n--;
    }
    mean /= times;
    printf( "%.0lf\n", mean );
    return 0;
}
