#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int k, n;
struct ALUNO{
int status;
int RA;
char nome[20], sobrenome [30];
float P1, P2, T1;
};
typedef struct ALUNO user;
int main(void) {
scanf ("%d",&n);
user vetAluno[n];
for (k=0;k<n;k++)
{
scanf ("%d",&vetAluno[k].RA);
gets (vetAluno[k].nome);
gets (vetAluno[k].sobrenome);
scanf ("%f",&vetAluno[k].P1);
scanf ("%f",&vetAluno[k].P2);
scanf ("%f",&vetAluno[k].T1);
printf ("RA: %d Nome e Sobrenome: %s %s P1: %.2f P2: %.2f T1: %.2f\n",vetAluno[k].RA, vetAluno[k].nome, vetAluno[k].sobrenome, vetAluno[k].P1, vetAluno[k].P2, vetAluno[k].T1);
}
return 0;
}