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

int main(){

	int n, m;
	long long sum = 0;
	
	cin >> n;
	
	for(int i=0; i<n; i++){
		cin >> m;
		sum += m;
	}
	int result = floor((double)sum / n);
	cout << result << endl;

	return 0;

}