#include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	unsigned long long int sum = 0;
	for(int i = 0; i < n; ++i)
	{
		int a;
		cin >> a;
		sum += a;
	}
	cout << sum / n << endl;
}

int main()
{
	solve();
	return(0);
}