You are given $$$m$$$ equations of the form $$$$$$a_i \cdot x + err_i \equiv c_i \pmod p.$$$$$$ Here, $$$err_i$$$ is an unknown random error term, chosen uniformly at random from $$$-\lfloor \frac{p}{200} \rfloor, \ldots, \lfloor \frac{p}{200} \rfloor$$$, while $$$a_i, c_i$$$ and $$$p$$$ are known to you.
You know that these equations hold for some unknown integer $$$x$$$. Find one such $$$x$$$.
In the first line, $$$T$$$ ($$$1\leq T\leq 500$$$) — the number of test cases. For each test case:
For each test case, one integer — the answer. If there are multiple solutions, you may output any.
1 50 922033901407246477 492300877907148697 8585039545574817 36478175140515505 237143454432095134 537753813197233578 694568987600933631 ... (truncated)
578607642570710976
The full sample test case is available in the contest system.