#include<iostream>

typedef long long ll;

int main()
{
	ll n;
	std::cin >> n;
	
	ll sum = 0;
	for( int i = 0; i != n; ++i )
	{
		ll p;
		std::cin >> p;
		sum += p;
	}

	std::cout << sum / n << std::endl;

	return 0;
}