#include <iostream>

using namespace std;

int main() {
  int n;
  long long result = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int j;
    cin >> j;
    result += j;
  }
  cout << result / n << endl;
}