#include <bits/stdc++.h>
int main(void) {
  int N;
  int a[100];
  double avg;
  int sm;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &a[i]);
  }
  for (int i = 0; i < N; i++) {
    avg += a[i];
  }
  avg /= N;
  sm = (int)avg;
  printf("%d", sm);
}
