#include <bits/stdc++.h>
using namespace std;
int arr[101] = {0};
int main() {
  int c = 0;
  while (~scanf("%d", &c)) {
    for (int i = 0; i < c; ++i) {
      scanf("%d", &arr[i]);
    }
    sort(arr, arr + c);
    if (c == 1) {
      printf("%d\n", arr[0]);
    } else {
      printf("%d\n", arr[c / 2]);
    }
  }
}
