#include <bits/stdc++.h>
using namespace std;
const int M = 2e5 + 5;
const int inf = 1e9 + 5;
int main() {
  int n;
  vector<int> v;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    v.push_back(t);
  }
  sort(v.begin(), v.end());
  cout << v[n / 2] << endl;
  return 0;
}
