#include <stdio.h>
int main()
{ float max,min,sum;
float b[10];
int i=0;
for(i=0;i<10;i++)
{
scanf("%f",&b[i]);
sum=sum+b[i];
}
printf("Ê®¸öÊý×ܺÍΪ%g\n",sum) ;
max=0; min=b[6];
for(i=0;i<10;i++)
{ if(b[i]>max)
{
max=b[i];
}
if(b[i]<min)
{
min=b[i];
}
}
printf("×î´óֵΪ%g\n",max);
printf("×îСֵΪ%g\n",min);
float avg=0;
sum=sum-max-min;
avg=sum/8;
printf("avg=%g\n",avg);
return 0;
}