#include struct student{ char id[20]; double score1,score2,score3,total; }s[10]; void input(){ int i; for(i=0;i<3;i++){ scanf("%s%lf%lf%lf",s[i].id,&s[i].score1,&s[i].score2,&s[i].score3); s[i].total=s[i].score1+s[i].score2+s[i].score3; } for(i=0;i<3;i++){ printf("%s %.1f %.1f %.1f %.1f\n",s[i].id,s[i].score1,s[i].score2,s[i].score3,s[i].total); } } int main(){ input(); return 0; } //10001 //85.0 //99.0 //77.5 //10002 //88.5 //88.5 //90.0 //10003 //66.0 //78.5 //89.5