#include<iostream>
using namespace std;

int main(){
	int n;
	long long int money = 0;
	int input;

	cin >> n;
	for(int i=0; i < n; i++){
		cin >> input;
		money += input;
	}
	cout << money / n << endl;
}