6
100 1
200 0 10 7
10 1
0 20 10 10
10 4
10 10 1 1
10 -10 1 1
-10 10 1 1
-10 -10 1 1
10 4
0 20 1 1
0 -20 1 1
20 0 1 1
-20 0 1 1
10 2
15 0 1 1
-30 0 10 10
10 2
0 -20 3 2
0 20 2 3
