#include <cstdio>
int x[1000];
int n;
void bubble_sort(int a[]){
int i,j;
for (i=1;i<=n-1;i++){
for (j=1;j<=n-i;j++){
int t = a[i];
a[i] = a[i+1];
a[i+1] = t;
}
}
}
int main(){
freopen("stats.in","r",stdin);
freopen("stats.out","w",stdout);
scanf("%d",&n);
int i;
int sum = 0;
for (i=1;i<=n;i++){
scanf("%d",&x[i]);
sum += x[i]; //求和
}
bubble_sort(x); //排序
//输出答案
printf("%0.6lf\n",sum*1.0 /n);
if( n % 2 == 0){ //偶数
double ans = (x[n/2+1]+x[n/2])*1.0/2;
printf("%0.6lf",ans);
}
else{
printf("%0.6lf",(double)x[n/2+1]);
}
return 0;
}