#include<iostream>
using namespace std;

int main(void){
     int n;
     long int total=0;
     cin >> n;
     for(int i=0;i<n;i++){
	  int money;
	  cin >> money;
	  total += money;
     }
     cout << total/n << endl;
     return 0;
}