#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    int n;
    cin >> n;

    int sum = 0;
    for(int i=0; i<n; ++i){
        int tmp;
        cin >> tmp;
        sum += tmp;
    }
    cout << (sum / n) << endl;

    return 0;
}