英语翻译
Ms.Terryisapre-schoolartteacherwholikestohaveherstudentsworkwithclay.Oneofherassignmentsistoformalumpofclayintoablockandthenmeasurethedimensionsoftheblock.However,ineveryclass,thereisalwaysonechildwhoinsistsontakingsomeclayfromsomeotherchild.SinceMs.Terryalwaysgiveseverychildinaclassthesameamountofclaytobeginwith,youcanwriteaprogramthathelpsMs.Terryfindthebullyandvictimaftershemeasureseachchild'sfinishedblock.
Input
Thereareoneormoreclassesofstudents,followedbyafinallinecontainingonlythevalue-1.Eachclassstartswithalinecontaininganinteger,n,whichisthenumberofstudentsintheclass,followedbynlinesofstudentinformation.Eachlineofstudentinformationconsistsofthreepositiveintegers,representingthedimensionsoftheclayblock,followedbythestudent'sfirstname.Therecanneverbemorethan9studentsnorlessthan2studentsinanyclass.Eachstudent'snameisatmost8characters.Ms.Terryalwaysgiveseachstudentatmost250cubicunitsofclay.Thereisexactlyonebullyandonevictimineachclass.
Output
Foreachclassprintasinglelineexactlyasshowninthesampleoutput.