The crew producing a famous pop star's concert has run into quite a challenge. The star has asked to be lit in a precisely specified, non-trivial color throughout the performance. To light the star, the technicians use 10 spotlights that illuminate her simultaneously from different directions in carefully chosen colors, so that the compositional effect of the whole stage is preserved. You must help the technicians determine what color will ultimately be produced at the central spot where the star stands.
The first line contains a small integer z — the number of data sets that follow one after another (z≥1).
Each data set consists of 10 lines. Each line contains three integers r, g, b (0≤r,g,b≤255) separated by spaces, denoting the three primary light-color components (red, green, blue) of one spotlight. Assume the color of the light illuminating the star is the simple average of the colors produced by all 10 spotlights.
For each data set, print three integers r, g, b on one line, separated by spaces, describing the color of the light reaching the star — the average of the light from the spotlights. Round the result to the nearest integer using ordinary mathematical rounding: if the first decimal digit is 1–4 round down, and if it is 5–9 round up.