Little Jellyfish had a dream.
She dreamed that there were two identical boxes in front of her, one containing a gem worth

gold coins and the other empty. If she chose the correct box, she would receive the gem; otherwise, she would receive nothing.
Little Jellyfish didn't know which box contained the gem. Suddenly, her friend May appeared before her.
"I know which box the gem is in, but I won't answer your question for free. You need to pay me

gold coin to ask. I will tell you the correct box with probability

, and with probability

, I will tell you the wrong box."
Little Jellyfish hesitated but missed this opportunity after all. Now she misses May a lot and wants to know the maximum expected number of gold coins she can earn if she asks questions optimally.
The dream keeps replaying in Little Jellyfish's mind, but she still hasn't found the answer.
输入描述:
The first line contains a positive integer
indicating the number of test cases.
For each test case, there is a line with three non-negative integers
. The value of
can be calculated as
.
输出描述:
For each test case, output
where
represents the answer. Ensure that
and
is a positive integer.
示例1
输入
复制
4
9 1 2
5 4 5
20 9 10
200 4 9
输出
复制
9/2
3/1
710/41
530455/4149
备注:

.
In the first example case, May's answer holds no value, so the optimal strategy is to randomly choose a box.
In the second example case, the optimal strategy involves asking May once and then choosing the box she indicates. The expected number of gold coins earned is
. It can be proven that this is the best strategy, as asking more than once would cost at least
gold coins, thereby not exceeding an expected earning of
gold coins.