#include <iostream>
#include <algorithm>
#include <cstdio>
#include <numeric>
#include <string>
#include <cmath>
#include <map>
#include <vector>
#include <sstream>

#define rep(x,to) for(int x=0;x<to;x++)
#define rep2(x,from,to) for(int x=from;x<to;x++)

using namespace std;
typedef long long ll;



int main() {

	int n, kk;
	ll sum=0;
	
	cin >> n;
	rep(i,n){
		cin >> kk;
		sum += kk;
	}
	
	cout << sum / n << endl;
	return 0;
}