#include<iostream>
using namespace std;

int main() {
	int n;
	int ca = 0;
	int b;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> b;
		ca += b;
	}
	int an = ca / n;
	cout <<an << endl;
	return 0;
}