Although some people can't get equiped, although they scuffled a lot for a better equipment, TT finally solved this hard problem. TT wanted to know if her ability beyond her troop. "Now stand up soldiers! Time to calculate our fighting capacity!" said TT. TT's fighting capacity was N, and the average of troop was K. It was too terrible if TT more power than her troop.
For each case, output TT's fighting capacity and the average of the troop,if TT's fight more than her troop's average, output "terrible" in the end. For the second number, keep one decimal point.