#include <iostream>
#include <string>

#define rep(i,n) for(long long i=0;i<n;i++)
using namespace std;
typedef long long ll;

int main()
{
	ll n;
	cin >> n;

	ll ans = 0;
	rep(i,n)
	{
		ll temp;
		cin >> temp;

		ans += temp;
	}
	ans /= n;
	cout << ans << endl;
	return 0;
}