Given three integers $$$a$$$, $$$b$$$ and $$$d$$$, find minimum non-negative integer k such that:
If such number doesn't exist print $$$-1$$$.
You have to answer $$$t$$$ independent test cases.
The first line contains one integer $$$t$$$ ($$$ 1 \le t \le 10^5$$$) — the number of queries.
Then q lines follow, each containing three integer $$$a_i, b_i$$$ and $$$d_i (1 \le a_i,b_i,d_i \le 10^9)$$$
For each query print one integer: the answer to this query.
If the answer does not exist, print $$$-1$$$.
612 1 42 6 124 2 82 4 89 3 272 6 64
0 -1 2 -1 6 21