#include<iostream>
#include<cstdio>
#include<math.h>
using namespace std;

int main(){
  long long n,s=0;
  int i,j;

  cin >> n;
  for(i=0;i<n;i++){
    cin >> j;
    s+=j;
  }
  cout << floor(s/n) << endl;



}