// Tazoe

#include <iostream>
using namespace std;

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

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

		sum += (long long)m;
	}

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

	return 0;
}