#include <iostream>
using namespace std;

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