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