#include <iostream>
#include <cstdio>

using namespace std;

typedef long long ll;

int main()
{
    int n;
    ll sum = 0, tmp;

    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        scanf("%lld", &tmp);
        sum += tmp;
    }
    printf("%lld\n", sum / n);

    return 0;
}