#include<stdio.h>
int main(void)
{
	int n;
	int kin[100000];
	long long int sum,avg;
	int i;
	sum=0;
	
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&kin[i]);
		sum=sum+kin[i];
	}
	avg=sum/n;
	printf("%d\n",avg);
	return 0;
}