#include<cstdio>
using namespace std;
typedef long long ll;
main(){
  ll n;
  while(~scanf("%lld",&n)){
    ll sum=0;
    for(int i=0;i<n;i++){
      ll m;
      scanf("%lld",&m);
      sum+=m;
    }
    printf("%lld\n",sum/n);
  }
}