#include <iostream>
#include <algorithm>
using namespace std;

int main() {
  int n;
  double avg = 0.0;
  cin >> n;
  for(int i = 1; i <= n; i++) {
    int a;
    cin >> a;
    avg = (avg*(i-1) + a)/i;
  }
  cout << (int)avg << endl;
}