#include <iostream>
using namespace std;
typedef long long Int;

int main(){
    Int sum = 0;
    Int kingaku;

    int n;
    cin >> n;

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

    return 0;
}