#include<iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	unsigned long long sum = 0;
	for(int i=0;i<n;i++){
		int a;
		cin >> a;
		sum += static_cast<unsigned long long >(a);
	}
	cout << sum/static_cast<unsigned long long>(n) << endl;
	return 0;
}