#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main() {
	long n;
	cin >> n;
	long long sum = 0;
	for (int i = 0; i < n; i++){
		int a;
		cin >> a;
		sum += a;
	}
	cout << sum / n << endl;
	return 0;
}