#P1379B. Dubious Cyrpto
Dubious Cyrpto
Description
Pasha loves to send strictly positive integers to his friends. Pasha cares about security, therefore when he wants to send an integer , he encrypts it in the following way: he picks three integers , and such that , and then he computes the encrypted value .
Unfortunately, an adversary intercepted the values , and . Is it possible to recover the original values of , and from this information? More formally, you are asked to find any values of , and such that
- , and are integers,
- ,
- there exists a strictly positive integer , such that .
The first line contains the only integer () — the number of test cases. The following lines describe one test case each.
Each test case consists of three integers , and (, ). The numbers are such that the answer to the problem exists.
For each test case output three integers , and such that, and there exists a strictly positive integer such that . It is guaranteed that there is at least one possible solution, and you can output any possible combination if there are multiple solutions.
Input
The first line contains the only integer () — the number of test cases. The following lines describe one test case each.
Each test case consists of three integers , and (, ). The numbers are such that the answer to the problem exists.
Output
For each test case output three integers , and such that, and there exists a strictly positive integer such that . It is guaranteed that there is at least one possible solution, and you can output any possible combination if there are multiple solutions.
Note
In the first example is possible, then . Other possible solutions include: , , (when ); , , (when ); , , (when ); , , (when ).
In the second example the only possible case is : in this case . Note that, is not possible, since in that case is not a strictly positive integer.