#include<bits/stdc++.h>
using namespace std;

#define pb push_back
#define fr first
#define sc second
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef pair<int,pii> pip; 
const int INF = (1<<25);
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main() {

  long long int sum=0, n;

  cin>> n;
  for(int i=0; i<n; i++){
    int money;
    cin>> money;
    sum+=money;
  }
  cout<< sum/n<< endl;
}