#include<iostream>
#include<vector>

using namespace std;

#define rep(i,a) for(int i = 0 ; i < a ; i ++)

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