The input contains multiple test cases.
The first line of the input contains an integer, the number of test cases.
Each test case contains only one line with three integers, the volume of the two bottles and the required volume of water he will drink, respectively.
For each test case, output the minimum number of operations in one line. If it is impossible for him to drink exactlyunits of water, output
.
In the first example, Walk Alone will do the following operations:
1. Fill the second bottle.
2. Transferunits of water from the second bottle to the first one.
3. Spill all water from the first cup.
4. Transferunits of water from the second bottle to the first one, after which there is exactly one unit of water in the second bottle.
5. Drink all water in the second bottle.