#include<stdio.h>
struct student{
char name[19];
int math,english;
double average;
};
int main(void)
{
int i,c;
double x;
struct student students[5];
for(i=0;i<5;i++)
{
scanf("%s %d %d",students[i].name,&students[i].math,&students[i].english);
students[i].average=(students[i].english+students[i].math)/2.0;
}
for(i=0;i<5;i++){
printf("%s %.1f
",students[i].name,students[i].average);
}
x=students[0].average;
for(i=1;i<5;i++){
if(students[i].average>x){
x=students[i].average;
c=i;
}
}
printf("The max score: %s %d %d
",students[c].name,students[c].math,students[c].english);
return 0;
}