#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen ("testcase.exitsurvey2", "r", stdin );
	string str = "";
	int n;

	getline (cin, str );
	stringstream ssn(str);
	ssn >> n;
	long long total = 0LL;

	int i;
	for (i = 0; i < n; ++i){
		int money = 0;
		getline (cin, str );
		stringstream ss(str);
		ss >> money;

		total += (long long)money;
	} // end loop
	
	long long res = total/n;
	cout << res << endl;	
		
	return 0;
}