#include<iostream>
using namespace std;
int main()
{
double res=1;
for(int i=0;i<3;i++)
{
double w,t,l;
cin>>w>>t>>l;
double x=max(w,max(t,l));
if(x==w) cout<<"W ";
else if(x==t) cout<<"T ";
else cout<<"L ";
res*=x;
}
printf("%.2lf\n",(res*0.65-1)*2);
return 0;
}