#include <stdio.h>

int main(){
  int s[100], n, i;
  int max, min, sum, ave;

  while(1) {
    max = 0;
    min = 1000;
    sum = 0;
    scanf("%d", &n);
    if(n < 3  || n > 100)
      scanf("%d", &n);
    for(i = 0; i < n; i++) {
      scanf("%d", &s[i]);
      if(s[i] < 0 || s[i] > 1000)
        scanf("%d", &s[i]);
      if(min > s[i])
        min = s[i];
      if(max < s[i])
        max = s[i];
      sum += s[i];
    }
    ave = sum / n;
    printf("%d\n", ave);
    /*s[i]???????¨?????±???????*/
    /*max??¨min?????????*/
  }

  return 0;
}