// 2011/01/26 Tazoe

#include <iostream>
using namespace std;

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

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

	cout << sum/(long long)n << endl;

	return 0;
}