#include <bits/stdc++.h>
void bubblesort(int *arr, int n) {
  for (int i = 0; i < n - 1; i++)
    for (int j = 0; j < n - 1 - i; j++)
      if (arr[j] > arr[j + 1]) {
        int temp = arr[j];
        arr[j] = arr[j + 1];
        arr[j + 1] = temp;
      }
}
int main() {
  int n;
  scanf("%d", &n);
  int year[n];
  for (int i = 0; i < n; i++) scanf("%d", &year[i]);
  if (n == 1)
    printf("%d ", year[0]);
  else {
    bubblesort(year, n);
    printf("%d ", year[n / 2]);
  }
  return 0;
}
