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.
First there is two integers N(1 <= N <= 100) and M(1 <= M <= 200), N means TT's fighting capacity, M means there are M soldiers, next line contains M numbers(1 <= ith <= 100), means each soldier's fighting capacity.
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.