Miku got out of bed late and her voice was messed up. She has a concert in hours, so she needs to pitch her voice down quickly. To be exact, she needs to pitch her voice down exactly Hertz.
She can eat as many leeks as she wants, and each one pitches her voice down Hertz. She can also use baguettes, and each baguette pitches her voice down Hertz.
She wants to use as few baguettes as possible, so she wants your help figuring out the minimum number of baguettes she needs to use to pitch her voice down exactly Hertz, or determine if she can't do it no matter what she eats.
The first line consists of one integer (1 \le t \le 10^4) — the number of test cases.
Each of the following lines contains integers x, y, z (1 \le x, y, z \le 1000).
The output consists of lines, each containing one integer — the minimum number of baguettes Miku needs to use in order to pitch her voice down by exactly , or if she can't do it.
Example 1
In the first test case: Miku can eat leek and use baguettes. Since 3 + 2 \cdot 5 = 13, it can be shown that Miku can't succeed without using at least baguettes, so the answer is .
In the second test case: Miku can just eat leeks without using any baguettes, so the answer is .
In the third test case: It can be shown that Miku can't succeed no matter how many baguettes she uses.
Subtask ( points): x = y
Subtask ( points): no additional constraints.