#include <iostream>
using namespace std;

int main()
{
	int n;
	long sum =0;
	cin >> n;
	
	for (int i = 0; i < n; i++){
		int a;
		cin >> a;
		sum += a;
	}
	
	cout << sum / n << endl;
	
	return (0);
}