#include<stdio.h>
int main()
{
float sum = 0;
int arr[6]={0};
for(int a = 0;a < 6;a++)
{
scanf("%d",&arr[a]);
}
int i=0;
for(i=0;i<=5;i++)
{
int j = 0;
for(j=0;j<5-i;j++)
{
if(arr[j]>arr[j+1])
{
int tmp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = tmp;
}
}
}
printf("最小数为%d\n",arr[0]);
printf("最大数为%d\n",arr[5]);
for(int n = 0;n<6;n++)
{
sum=sum+arr[n];
}
float ave =0;
ave = (sum/6)*1.0;
printf("平均数为%.2f\n",ave);
return 0;