#include<stdio.h>
int main(){
int a[3];
double odd[3]={0,0,0},num,product;
int i,j;
for(i = 0;i<3;i++)
for(j = 0;j<3;j++){
scanf("%lf",&num);
if(num>odd[i]){
odd[i] = num;
a[i] = j;
}
}
product = (odd[0]*odd[1]*odd[2]*0.65 - 1)*2;
for(i = 0;i<3;i++)
if(a[i] == 0)
printf("W ");
else if(a[i] == 1)
printf("T ");
else printf("L ");
printf("%.2lf\n",product);
return 0;
}
11-03