#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
#define max_n 10000000
int num[max_n + 5] = {0};
int main() {
int n;
cin >> n;
for(int i = 1; i <= n; i++) {
cin >> num[i];
}
sort(num + 1, num + 1 + n);
if(n & 1) {
cout << num[n] << " " << num[(n + 1) / 2] << " " << num[1];
}else{
cout << num[n] << " " << ((double)num[n / 2] + (double)num[n / 2 + 1]) / 2 <<" " << num[1];
}
}
为什么一直是九十分a