#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n)           REPEAT(i, 0, n)
#define REPEAT(i, k, n)     for(int i = (k); i < (k+n); ++i)
#define FROMTO(i,f,t)       for(int i = f; i < t; i++)
typedef unsigned long long ull;

int main(){
    int n;
    cin >> n;       // 10^5
    ull total = 0;
    REP(i,n){
        ull t;
        cin >> t;   // >= 10^6
        total += t;
    }
    cout << total/n << endl;
    return 0;
}