#include <iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main(){
	
	long long int n, sum, a;
	
	cin >> n;
	
	sum = 0;
	
	for(int i = 0; i < n; i++){
		cin >> a;
		sum += a;
	}
	
	printf("%lld\n", sum / n);
	
	return 0;
}