#include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	unsigned long long sum;
	int n;

	cin >> n;

	sum = 0;
	for( int i = 0;i < n;i++ ){
		unsigned int money;
		cin >> money;
		sum += money;
	}

	cout << ( sum / n ) << endl;
	return 0;
}