#include<bits/stdc++.h> using namespace std; int main(){ int i,n,x,j=0,max=0; float s=0,m=0; int a[101]={0},b[100]={0}; cin>>n; for(i=0;i<n;i++){ cin>>x;b[i]=x; s=s+x; a[x]++; } for(i=0;i<n;i++) if(a[i]>a[max]) max=i; for(i=1;i<n;i++){ for(j=1;j<=n-i;j++){ if(b[j-1]<b[j]) swap(b[j],b[j-1]);}} if(n%2!=0) m=b[n/2]; else m=(b[n/2]*1.0+b[n/2-1])/2; s=s/n; printf("%.2f ",s); cout<<a[max]<<" "; printf("%.1f",m); return 0;} /************************************************************** Problem: 1179 User: wtq001 Language: C++ Result: Accepted Time:8 ms Memory:2076 kb ****************************************************************/