

import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner=new Scanner(System.in);
double profit=0.65;
String str="";
for(int i=0;i<3;i++){
double a=scanner.nextDouble();
double b=scanner.nextDouble();
double c=scanner.nextDouble();
if (a>b&&a>c){
str=str+" "+"W";
profit*=a;
}
if (b>a&&b>c){
str=str+" "+"T";
profit*=b;
}
if (c>a&&c>b){
str=str+" "+"L";
profit*=c;
}
}
str=str+" "+String.format("%.2f",(profit-1)*2);
System.out.println(str.substring(1,str.length()));
}
}
