#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main() {
    int n, a;
    cin >> n;
    long long sum = 0;
    for (int i=0; i<n; ++i) {
        cin >> a;
        sum += a;
    }
    cout << sum / n << endl;
    return 0;
}