#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> groups(n);
  for (auto &x : groups) cin >> x;
  sort(groups.begin(), groups.end());
  cout << groups[n / 2] << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
