#include <stdio.h>
#include <iostream>

using namespace std;

int main() {
	int a;
	int counter;
	double sum = 0;
	int kekka;

	cin >> counter;

	for (int i = 0; i < counter; i++) {
		cin >> a;
		sum += ((double)a / (double)counter);
	}

	kekka = (int)sum;

	cout << kekka << endl;
	return 0;
}