#include <stdio.h>

int main(void){
    int n;
    long long unsigned val=0;
    
    scanf("%d", &n);
    for (int i=0; i<n; i++){
        int tmp;
        scanf("%d", &tmp);
        val += tmp;
    }
    val /= n;
    printf("%d\n", val);
    
    return 0;
}