#include <stdio.h>
int main()
{
int u,a,b,i;char j;
scanf("%d",&u);
for (i=0;i<u;i++)
{
scanf("\n%c %d %d",&j, &a, &b);
printf("%c %d %d\n",j,a,b);
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKewoJaW50IHUsYSxiLGk7Y2hhciBqOwoJc2NhbmYoIiVkIiwmdSk7CgoJZm9yIChpPTA7aTx1O2krKykKCXsKCQlzY2FuZigiXG4lYyAlZCAlZCIsJmosICZhLCAmYik7CgkJcHJpbnRmKCIlYyAlZCAlZFxuIixqLGEsYik7Cgl9Cn0=