#include<iostream>

using namespace std;

int main(){
	 
	int n;
	int dollar;
	long long sum = 0;
	
	cin >> n;
	int ps = n;
	
	while(n--) {
		cin >> dollar;
		sum += dollar;
	}
	cout << sum / ps << "\n"; 
	  
  	return 0;
}
