#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
int main(){
	int n;
	cin >> n;
	double ans;
	for(int i = 0; i < n; i++){
        int a;
        scanf("%d",&a);
        ans += a;
	}
	printf("%d\n",(int)ans/n);
	return 0;
}