#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;

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

	cout << sum / n << endl;

	return 0;
}