#include<iostream>
using namespace std;

int main(){
	int n;
	cin >> n;
	double total_money = 0;
	for (int i = 0; i < n; i++) {
		double tmp;
		cin >> tmp;
		total_money += tmp;
	}
	cout << int(total_money / n) << endl;
}
