By Lucas Campesatto, URI Online Judge Brazil
Jorge was a very determined guy to create sweet Christmas trapezoids. The trapezoids are made of yarn candy toffee and filled with ice cream. Baked after they assume a perfect two-dimensional shape of a trapezium. By default, all trapezoids have the same height, 5cm, and their bases can change size depending on the availability of taffy that Jorge has in inventory. Some day Jorge was curious to know how much ice cream was using for each trapezoid size that he did, so he called you to help him.
You should make a program that given the different sizes of trapezoids that will be made, how many trapezoids that size will be produced and measurements of the bases of toffee, you tell how many cm2 of ice cream will be used for each size.
The input consists of several test cases. The first line of each test case begins with an integer T (0 ≤ T ≤ 50) indicating how many different sizes will be in that batch. The following T lines contain 3 values, an integer Q (0 ≤ Q ≤ 50) indicating the amount of trapezoids made with the measures A and B (0 ≤ A, B ≤ 50) both double precision preceded by Q. The input ends when T is zero.
For each test case present the value of ice cream used, in cm2 for each size. After each test case, print a blank line.
|Input Sample||Output Sample|