#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace std;
//简单模拟题
//唯一的难点是英语题意。。。
//odd - 赔率;trophy - 奖杯
int main()
{
double res(1), a, b, c, t;
for(int i = 1; i <= 3; i++)
{
scanf("%lf %lf %lf", &a, &b, &c);
t = max(max(a, b), c);
if(t == a) cout << 'W' << " ";
else if(t == b) cout << 'T' << " ";
else if(t == c) cout << 'L' << " ";
res *= t;
}
cout << fixed << setprecision(2) << (res * 0.65 - 1) * 2 << endl;
return 0;
}