#include <bits/stdc++.h>
using namespace std;
void solution() {
  int n, x = 0;
  cin >> n;
  for (int i = (1); i <= (n); i++) {
    int y;
    cin >> y;
    x += y;
  }
  cout << x / n << '\n';
}
int main() { solution(); }
