#include <bits/stdc++.h>
using namespace std;
void solve(), solve1();
void gen();
int main() {
  srand((unsigned int)time(0));
  ios::sync_with_stdio(0);
  cin.tie(0);
  ;
  solve();
  return 0;
}
long long mod = 1e9;
long long inf = 2 * 1e18;
void solve() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  cout << a[n / 2];
}
