#include <bits/stdc++.h>

using namespace std;


int main() {
	int n, v;
	long sum;

	cin >> n;
	sum = 0;
	for (int i = 0; i < n; i++) {
		cin >> v;
		sum += v;
	}
	cout << sum / n << endl;

	return 0;
}
