#include <iostream>
using namespace std;
int main()
{
	int n, m, s, i;
	while (cin >> n)
	{
		if (cin.eof()) break;
		m = s = 0;
		for (i = 0; i < n; i++)
		{
			cin >> m;
			s += m;
		}
		cout << s / n << endl;
	}
}