m=[:] System.in.readLines().sort{it-~/.+ /as int}.any{(a,b)=it.split().collect{m[it]?:[it]} println"${Set x=a+b;b==x.each{m[it]=x}?'F':'T'} $it"}