/*
	0134:Exit Survery
*/
#include	<iostream>

using namespace std;

int main(void) {
	int w;
	__int64 ave, sum = 0;
	
	cin >> w;
	for(int i = 0; i < w; i++) {
		int bu;
		
		cin >> bu;
		sum += bu;
	}
	ave = sum / w;
	cout << ave << endl;
	
	return 0;
}