#include<stdio.h>
int main()
{
double average1,average2,average3=0;
int sum1=0;
int sum2=0;
int sum3=0;
int i=0;
int temp=0;
struct student//定义结构体
{
int numble=0;
char name[10]={'\0'};
double score[3];
double sum=0;
};
struct student stu[10];
for(i=0;i<10;i++)//遍历输入
{
scanf("%d%s%lf%lf%lf",&stu[i].numble,&stu[i].name,&stu[i].score[0],&stu[i].score[1],&stu[i].score[2]);
stu[i].sum=stu[i].score[0]+stu[i].score[1]+stu[i].score[2];
sum1+=stu[i].score[0];
sum2+=stu[i].score[1];
sum3+=stu[i].score[3];
}
average1=sum1*1.0/10;
average2=sum2*1.0/10;
average3=sum3*1.0/10;
int max=stu[0].sum;
for(i=0;i<10;i++)
{
if(stu[i].sum>max)
{
max=stu[i].sum;
}
temp=i;
}
printf("%lf %lf %lf",average1,average2,average3);
printf("%d %s %lf %lf %lf",stu[i].numble,stu[i].name,stu[i].score[0],stu[i].score[1],stu[i].score[2]);
}