#include <bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
typedef long long ll;
int main(){
  int n,a;
  cin>>n;
  ll sum=0;
  for(int i=0;i<n;i++){
    cin>>a;
    sum+=a;
  }
  cout<<sum/n<<endl;
}