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