#include <iostream>
#include <cstdio>
#define int long long
using namespace std;

signed main(){
	int n,sum = 0;
	cin >> n;
	for(int i = 0;i < n;i++){
		int t;
		cin >> t;
		sum += t;
	}
	cout << sum / n << endl;
	return 0;
}