#include <cstdio>
#include <algorithm>
using namespace std;

int main() {

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