#include <cstdio>

int main(){
	int n;
	unsigned long long int sum = 0;
	int in;
	scanf("%d", &n);
	for(int i = 0; i < n; i++){
		scanf("%d", &in);
		sum += in;
	}
	
	printf("%d\n", sum / n);
	
	return 0;
}