#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <list>
#include <iostream>
#include <sstream>
#include <climits>
#include <cfloat>
#include <complex>


typedef long long ll;
const double Eps = 1e-5;

using namespace std;

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

	return 0;
}