#include <bits/stdc++.h>
using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)

typedef long long ll;

int main() {
	int n;
	cin >> n;
	
	ll sum = 0;
	REP(i, n) {
		int in;
		scanf("%d", &in);
		sum += in;
	}
	cout << sum / n << endl;
	return 0;
}