#include <cstdio>
int main()
{
    int n, t;
    long long res = 0;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        scanf("%d", &t);
        res += t;
    }
    printf("%d\n", (int)(res / n));
    return 0;
}