#include <bits/stdc++.h>
using namespace std;
vector<int> vi;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int s;
    scanf("%d", &s);
    vi.push_back(s);
  }
  sort(vi.begin(), vi.end());
  printf("%d", vi[n / 2]);
  return 0;
}
