#include <iostream>
using namespace std;
int main(){
    long long int n,buy,ans=0;
    cin >> n;
    for(int i=0;i<n;i++){
        cin >> buy;
        ans += buy;
    }
    ans /= n;
    cout << ans << endl;
}