#include<iostream> usingnamespacestd ; intmain(){ float w , t , l ; float sum = 1 ; for(int i =0 ; i<3 ;i++) { cin >> w >>t >> l ; float max = (w > t ? w : t ) > l ?(w > t ? w : t ) : l ; if(max == w ) cout<< "W"<<" "; elseif(max == t) cout<< "T"<<" "; else cout<< "L"<<" "; sum*=max ; }