#include <iostream>
#include <string>
using namespace std;

int main() {
	
	int t,i;
	int sum=0;
	int v;
	
	
	
	for(cin>>t,i=t;i--,cin>>v;){
		sum+=v;
	}
	
	cout<<sum/t<<endl;
	
	
	
	
	
	
	return 0;
}