#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){

	int n;
	cin>>n;
	int a=0;
	int sum=0;
	for(int i=0;i<n;i++){
        cin>>a;
        sum+=a;
	}
	cout<<sum/n<<endl;


	return 0;
}