#include<iostream>
#include<iomanip>
#include<algorithm>
using namespace std;
int n;
int main(){
while(cin >> n){
int list[n];
for(int i = 0; i < n; i++){
cin >> list[i];
}
sort(list, list + n);
cout << fixed << setprecision(2) << (n % 2 == 0 ? (list[n / 2] + list[n / 2 - 1]) / 2.0 : list[n / 2]) << endl;
}
return 0;
}
//presented by 大吉大利,今晚AC