#include <iostream>
#include <cmath>
using namespace std;

int main() {
	int n;
	cin >> n;
	int k;
	int sum = 0;
	for ( int i = 0; i < n; i++ ) {
		cin >> k;
		sum += k;
	}
	cout << (int)floor( (double)sum/n ) << endl;
	return 0;
}