#include <bits/stdc++.h>
const int inf = 1e9 + 5;
const long long linf = 1e18 + 5;
const long double eps = 1e-9;
const long long dd = 2e5 + 7;
const long long maxn = 2e3 + 10;
const long long mod = 1e9 + 7;
using namespace std;
int num[dd];
string str, p;
bool fun(int t) {
  int ind = 0;
  for (long long i = 0; i < str.size(); ++i) {
    if (num[i] > t) {
      if (str[i] == p[ind]) ind++;
    }
    if (ind == p.size()) break;
  }
  return ind == p.size();
}
int main() {
  ios_base::sync_with_stdio(0);
  if (0) {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
  } else {
    if (!01) {
      freopen(
          "brackets2"
          ".in",
          "r", stdin);
      freopen(
          "brackets2"
          ".out",
          "w", stdout);
    }
  }
  int n;
  cin >> n;
  vector<int> qwe;
  for (long long i = 0; i < n; ++i) {
    int x;
    cin >> x;
    qwe.push_back(x);
  }
  sort(qwe.begin(), qwe.end());
  cout << qwe[qwe.size() / 2];
  return 0;
}
