#include <iostream>

using namespace std;

int main() {

  int n;

  long int sum;


  cin >> n;

  sum=0;

  for(int i=0;i<n;i++) {

    long int val;

    cin >> val;

    sum+=val;

  }

  cout << sum/n;

  return 0;

}