#include<iostream>
#include<cmath>

using namespace std;

int main()
{
	while(true)
	{
		int n;
		int sum=0;
		cin>>n;
		if(n==0||cin.eof())break;
		for(int i=0;i<n;++i){
			int t;cin>>t;sum+=t;
		}
		cout<<(int)floor(sum/(double)n)<<'\n';
	}
	return 0;
}