#include <bits/stdc++.h>
using namespace std;
long long int euclid_algo(long long int a, long long int b) {
  while (a != 0 && b != 0) {
    if (a > b)
      a = a % b;
    else
      b = b % a;
  }
  return a + b;
}
long long int NOK(long long int a, long long int b) {
  return a * b / euclid_algo(a, b);
}
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; ++i) {
    cin >> v[i];
  }
  sort(v.begin(), v.end());
  cout << v[v.size() / 2];
}
