#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> groups(n);
  for (int &group : groups) {
    cin >> group;
  }
  sort(groups.begin(), groups.end());
  cout << groups[n / 2] << '\n';
  return 0;
}
