#include <iostream>
using namespace std;
typedef long long int ll;

int main(){
	int n;cin >> n;
	ll s, ans = 0;
	for(int i = 0;i < n;i++){
		cin >> s;
		ans += s;
	}
	cout << ans / n << endl;
	return 0;
}