#include <iostream>
using namespace std;
/** Problem0134 : Exit Survey **/
int main()
{
	long tot=0;
	int n;
	cin >> n;
	for (int i=0; i<n; i++) {
		int a;
		cin >> a;
		tot+=a;
	}
	cout << tot/n << endl;
	
	return 0;
}