#include<iostream>

int main()
{
	int n;
	long long expense=0;
	
	std::cin>>n;
	
	for(int i=0;i<n;i++)
	{
		int price;
		std::cin>>price;
		expense+=price;
	}
	expense/=n;
	std::cout<<expense<<std::endl;
	return 0;
}