#include<iostream>
#include<algorithm>
#include<cmath>
#include<map>
using namespace std;
char s[3] = {'W', 'T', 'L'};
int main(){
double ans = 1.0, tmp, a;
int idx;
for(int i = 0; i < 3; i++){
tmp = 0.0;
for(int j = 0; j < 3; j++){
scanf("%lf", &a);
if(tmp < a) {
tmp = a;
idx = j;
}
}
printf("%c ", s[idx]);
ans *= tmp;
}
printf("%.2lf", (ans * 0.65 - 1) * 2);
}