The first line contains a single integer $T$ ($1 \leq T \leq 500$), the number of test cases. For each test case:
The first line contains a single integer $n$ ($1 \leq n \leq 100\,000$), denoting the number of straight lines.
Each of the next $n$ lines contains four integers $xa_i,ya_i,xb_i$ and $yb_i$ ($0\leq xa_i,ya_i,xb_i,yb_i\leq 10^9)$, denoting a straight line passes both $(xa_i,ya_i)$ and $(xb_i,yb_i)$. $(xa_i,ya_i)$ will never be coincided with $(xb_i,yb_i)$.
It is guaranteed that the sum of all $n$ is at most $1\,000\,000$.