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