The first line contains a single integer $T$ ($1 \leq T \leq 10$), the number of test cases. For each test case:
The first line contains a single integer $n$ ($1 \leq n \leq 50$), denoting the number of laser alarms.
Each of the following $n$ lines contains six integers $x_i$, $y_i$, $z_i$, $x'_i$, $y'_i$ and $z'_i$ ($1 \leq x_i,y_i,z_i,x'_i,y'_i,z'_i \leq 100$), describing a segment that connects $(x_i,y_i,z_i)$ and $(x_i',y_i',z_i')$. It is guaranteed that the two endpoints of each segment do not coincide.