solution
#include <iostream>
#include <algorithm>
using namespace std;
char sum[4];
int main()
{
double a, b, c;
double ans = 1.0;
int idx = 0;
while (cin >> a >> b >> c)
{
double maxx = max(a, max(b, c));
ans *= maxx;
if (maxx == a)
sum[++idx] = 'W';
if (maxx == b)
sum[++idx] = 'T';
if (maxx == c)
sum[++idx] = 'L';
}
ans = (ans * 0.65 - 1) * 2;
for(int i=1;i<=idx;i++)
{
if(i!=1)cout<<" ";
cout<<sum[i];
}
printf(" %.2f", ans);
}