#include<stdio.h>
#include<math.h>

typedef unsigned long long int INT;
int main()
{
	while(1)
	{
		int i,n;
		INT sum=0;
		if(1!=scanf("%d",&n))break;
		if(n<=0)break;
		for(i=0;i<n;++i){
			int t;
			scanf("%d",&t);
			sum+=t;
		}
		printf("%u\n",(int)floor(sum/(double)n));
	}
	return 0;
}