#include <iostream>
#include <string>
using namespace std;
int main()
{
    float n, max[3] = {-1};
    int pos[3];
    string s[3] = {"W", "T", "L"};
    for (int i = 0; i < 3; i++)
    {
        for (int j = 0; j < 3; j++)
        {
            cin >> n;
            if (n > max[i])
            {
                max[i] = n;
                pos[i] = j;
            }
        }
    }
    float res;
    res = (max[0] * max[1] * max[2] * 0.65 - 1) * 2;
    for (int i = 0; i < 3; i++)
    {
        cout << s[pos[i]] << " ";
    }
    printf("%.2f", res);
    return 0;
}
