eolymp
bolt
Try our new interface for solving problems
Problems

Setting up communications

Setting up communications

Based on the geometric mean problem from the last Internet Olympiad.

All crew members have to complete a bunch of tasks in order to win against the impostors, but sometimes the tasks are too difficult, and the crew members are too tired after completing all the short and medium tasks, so they ask you for help.

The current task is as follows: the device has three positive integer parameters a, b and c, which have been reset to factory settings to the values x = g( a, b), y = g(a, c) and z = g( b, c) respectively, where g is the geometric mean rounded down, i.e.

prb11086.gif

Please help to determine any appropriate a, b and c (if they exist) from the current values of x, y and z so that the crew member was able to properly set up the device and complete the task. Since there are a lot of crew members, and everyone is adjusting their device, you need to solve the problem several times in a row!

Input

The first line contains one integer n (1n105) the number of crew members to help.

The next n lines contain three integers x, y and z (1x, y, * z* ≤ 109) each.

Output

For each triple of numbers x, y, z print the appropriate numbers a, b and c. If there are several suitable answers, print any one. If there is no answer, print three numbers 0.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1
7 9 6
Output example #1
11 5 8
Input example #2
1
10 11 12
Output example #2
9 12 14
Source 2020 Cycle of Internet Olympiads for schoolchildren, Second team contest, Advanced level, October 25, Problem E