#include <iostream>
using namespace std;
#define rep2(x,from,to) for(int x=(from);x<(to);++(x))
#define rep(x,to) rep2(x,0,to)

int main() {
	int n, m;
	long long sum = 0;
	cin >> n;

	rep(i,n) {
		cin >> m;
		sum += m;
	}
	cout << sum / n << endl;
	return 0;
}