#include <bits/stdc++.h>
using namespace std;
const long long inf = 4e18;
const long long N = 2e5 + 10;
void testCase() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long &i : a) cin >> i;
  sort(begin(a), end(a));
  cout << a[n / 2];
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t_c = 1;
  while (t_c--) testCase();
}
