#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <stdlib.h>
#include <vector>
using namespace std;
double first[3];
double second[3];
double third[3];
int main(){
// printf("hello\n");
for (int i=0; i<3; i++) {
scanf("%lf",&first[i]);
}
for (int i=0; i<3; i++) {
scanf("%lf",&second[i]);
}
for (int i=0; i<3; i++) {
scanf("%lf",&third[i]);
}
double *a = max_element(first, first+3);
double *b = max_element(second, second+3);
double *c = max_element(third, third+3);
// printf("\n%lf %lf %lf",a,b,c);
double profit = (*a**b**c*0.65-1)*2;
char s[3] = {'W','T','L'};
printf("%c %c %c ",s[a-first],s[b-second],s[c-third]);
printf("%.2lf",profit);
}