#include <bits/stdc++.h>
using namespace std;
int main() {
  short n;
  cin >> n;
  short y[n];
  for (short i = 0; i < n; ++i) {
    cin >> y[i];
  }
  sort(y, y + n);
  cout << y[n / 2];
  return 0;
}
