#include<iostream>
#include<cmath>

using namespace std;

int main()
{
	int n;
	int sum=0;
	cin>>n;
	for(int i=0;i<n;++i){
		int t;cin>>t;sum+=t;
	}
	cout<<(int)floor(sum/(double)n)<<'\n';
	return 0;
}