#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int n, m = 0, tmp;
	
	cin >> n;
	for(int i = 0; i < n; i++){
		cin >> tmp;
		m += tmp;
	}
	cout << (int)(m/n) << endl;
	
	return 0;
}