#include<iostream>
using namespace std;
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)

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