思维
#include <bits/stdc++.h>
using i64 = long long;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n;
std::cin >> n;
std::vector<int> a(5 * n);
for (int i = 0; i < 5 * n; i ++) {
std::cin >> a[i];
}
sort(a.begin(), a.end());
auto ans = 1. * std::accumulate(a.begin() + n, a.end() - n, 0) / (3 * n);
std::cout << std::fixed << std::setprecision(10);
std::cout << ans << "\n";
return 0;
}