#include <iostream>

using namespace std;

int main(){
	int n, money, total, ans;

	cin >> n;
	total = 0;
	for(int i = 0; i < n; i++){
		cin >> money;
		total += money;
	}
	
	ans = total / n;

	cout << ans << endl;

	return 0;
}